Re: Fop cannot resolve local font declared in fop.conf
no problem. a side note: you should not use metric files, this is deprecated unless you don't want to embed your font in PDF. for further info, see http://xmlgraphics.apache.org/fop/2.0/fonts.html#custom 2015-08-27 15:33 GMT+02:00 Christoffer Bruun : > As I should have guessed earlier not every rendering reused my global > FopFactory that is configured with a fop.conf. > After adressing this the FreeMono font worked perfectly > > - I apologize the disturbance > > Br > Christoffer Bruun > Den 26-08-2015 kl. 15:42 skrev Christoffer Bruun: >> Hi List, >> >> I am having a bit of a problem using a custom font in FOP and I am >> hoping someone know which knob I have failed to turn. >> >> I am using FOP 1.1 embedded on Windows7. >> >> I have configured the FreeMono font in my fop.conf file: >> >> true >> >> 72 >> 72 >> >> >> ./fonts/freefont-20120503 >> >> >> >> flate >> >> >> >> >> >> >> >> >> >> >> The FreeMono.xml file was generated using >> org.apache.fop.fonts.apps.TTFReader with no options except the filenames >> >> If I run org.apache.fop.tools.fontlist.FontListMain on my fop.conf I get >> this output: >> ... >> FreeMono: >> F15 [FreeMono] >> FreeMono,normal,400 >> ... >> >> When I try to build the PDF my FOPEventListener emits these errors: >> FOPEventListener:353 - Font "FreeMono,normal,400" not found. >> Substituting with "any,normal,400". >> >> If I introduce an error in fop.conf (e.g. changes the embed-url to some >> nonexisting file) then my PDF generation fails as would be expected. >> >> I use the FreeMono font like this: >> > font-size="12pt">FreeMono IS HERE >> >> Is there anything else I need to do before the font is available ? >> >> >> Br >> Christoffer Bruun >> >> >> >> >> >> - >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> > > > - > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > -- pascal - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
Re: Fop cannot resolve local font declared in fop.conf
As I should have guessed earlier not every rendering reused my global FopFactory that is configured with a fop.conf. After adressing this the FreeMono font worked perfectly - I apologize the disturbance Br Christoffer Bruun Den 26-08-2015 kl. 15:42 skrev Christoffer Bruun: > Hi List, > > I am having a bit of a problem using a custom font in FOP and I am > hoping someone know which knob I have failed to turn. > > I am using FOP 1.1 embedded on Windows7. > > I have configured the FreeMono font in my fop.conf file: > > true > > 72 > 72 > > > ./fonts/freefont-20120503 > > > > flate > > > > > > > > > > > The FreeMono.xml file was generated using > org.apache.fop.fonts.apps.TTFReader with no options except the filenames > > If I run org.apache.fop.tools.fontlist.FontListMain on my fop.conf I get > this output: > ... > FreeMono: > F15 [FreeMono] > FreeMono,normal,400 > ... > > When I try to build the PDF my FOPEventListener emits these errors: > FOPEventListener:353 - Font "FreeMono,normal,400" not found. > Substituting with "any,normal,400". > > If I introduce an error in fop.conf (e.g. changes the embed-url to some > nonexisting file) then my PDF generation fails as would be expected. > > I use the FreeMono font like this: > font-size="12pt">FreeMono IS HERE > > Is there anything else I need to do before the font is available ? > > > Br > Christoffer Bruun > > > > > > - > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
Fop cannot resolve local font declared in fop.conf
Hi List, I am having a bit of a problem using a custom font in FOP and I am hoping someone know which knob I have failed to turn. I am using FOP 1.1 embedded on Windows7. I have configured the FreeMono font in my fop.conf file: true 72 72 ./fonts/freefont-20120503 flate The FreeMono.xml file was generated using org.apache.fop.fonts.apps.TTFReader with no options except the filenames If I run org.apache.fop.tools.fontlist.FontListMain on my fop.conf I get this output: ... FreeMono: F15 [FreeMono] FreeMono,normal,400 ... When I try to build the PDF my FOPEventListener emits these errors: FOPEventListener:353 - Font "FreeMono,normal,400" not found. Substituting with "any,normal,400". If I introduce an error in fop.conf (e.g. changes the embed-url to some nonexisting file) then my PDF generation fails as would be expected. I use the FreeMono font like this: FreeMono IS HERE Is there anything else I need to do before the font is available ? Br Christoffer Bruun - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
