Re: Including Fonts in 20.4
John Gentilin wrote: Found it, for some reason if I am not embedding fonts I need to encode the xml file with option "-enc ansi" once I did that it worked fine. For this next version of FOP, can we make the change to FontInfo.java ?? Its on the list. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Including Fonts in 20.4
Yes, I use that option on TTFReader when I am building the XML font files. If I don't and I try to reference (i.e. not embed) fonts Acrobat Reader will not open the file and claim error 110. Also, if you are trying this, you need a patched fop.jar file so that non embedded fonts can be read by FOP. Regards John G Chris Bowditch wrote: > >Found it, for some reason if I am not embedding fonts I need > >to encode the xml file with option "-enc ansi" once I did that it > >worked fine. > > > > Hi John, > > Just to clarify for my own info. Do you mean specify -enc ansi when you run > TTFReader? > > _ > Get faster connections -- switch to MSN Internet Access! > http://resourcecenter.msn.com/access/plans/default.asp > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] -- -- John Gentilin Eye Catching Solutions Inc. 18314 Carlwyn Drive Castro Valley CA 94546 Contact Info [EMAIL PROTECTED] Ca Office 1-510-881-4821 NJ Office 1-732-422-4917 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Including Fonts in 20.4
Found it, for some reason if I am not embedding fonts I need to encode the xml file with option "-enc ansi" once I did that it worked fine. Hi John, Just to clarify for my own info. Do you mean specify -enc ansi when you run TTFReader? _ Get faster connections -- switch to MSN Internet Access! http://resourcecenter.msn.com/access/plans/default.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Including Fonts in 20.4
Found it, for some reason if I am not embedding fonts I need to encode the xml file with option "-enc ansi" once I did that it worked fine. For this next version of FOP, can we make the change to FontInfo.java ?? Regards John G John Gentilin wrote: > Oleg, > > In short yes but... when you pull out that tag it causes the variable embedFile > to become null. This is fine since FontReader.java code states that you need > to supply a null if you don't want to embed the font info. Presumably since the > BasrDir feature was implemented, the FontInfo.java code tries to apply a test > to determine if the embedFile is absolute and if it isn't it prepends basedir, > this > test causes an NPE to occur which results in the message "Failed to read font > metrics file : null " > > As I stated in my previous email, I added code to fix the NPE and it produced > the PDF without complaint. I just can't read it with Acrobat Reader. I also tried > to generate a similar file using Acrobat so I could compare differences. The main > difference is that the Font declaration in the PDF is missing a section named > "Widths" > > This cause me to look at the XML Font files in the FOP source which is where I > discovered that the XML Font Files I generated with TTFReader were very > different. > > Regards > John G > > Oleg Tkachenko wrote: > > > John Gentilin wrote: > > > > > I want to include windows fonts in my PDF, but not embed them. > > > > Ahem, what is the difference? Have you tried this way? > > "If you do not want the font embedded in the PDF then remove the "embed-file" > > attribute. The PDF will then contain text using the font with the font metrics > > and to view it properly the font will need to be installed where it is being > > viewed." (http://xml.apache.org/fop/fonts.html) > > > > -- > > Oleg Tkachenko > > eXperanto team > > Multiconn Technologies, Israel > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, email: [EMAIL PROTECTED] > > -- > -- > John Gentilin > Eye Catching Solutions Inc. > 18314 Carlwyn Drive > Castro Valley CA 94546 > > Contact Info > [EMAIL PROTECTED] > Ca Office 1-510-881-4821 > NJ Office 1-732-422-4917 > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] -- -- John Gentilin Eye Catching Solutions Inc. 18314 Carlwyn Drive Castro Valley CA 94546 Contact Info [EMAIL PROTECTED] Ca Office 1-510-881-4821 NJ Office 1-732-422-4917 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Including Fonts in 20.4
Oleg, In short yes but... when you pull out that tag it causes the variable embedFile to become null. This is fine since FontReader.java code states that you need to supply a null if you don't want to embed the font info. Presumably since the BasrDir feature was implemented, the FontInfo.java code tries to apply a test to determine if the embedFile is absolute and if it isn't it prepends basedir, this test causes an NPE to occur which results in the message "Failed to read font metrics file : null " As I stated in my previous email, I added code to fix the NPE and it produced the PDF without complaint. I just can't read it with Acrobat Reader. I also tried to generate a similar file using Acrobat so I could compare differences. The main difference is that the Font declaration in the PDF is missing a section named "Widths" This cause me to look at the XML Font files in the FOP source which is where I discovered that the XML Font Files I generated with TTFReader were very different. Regards John G Oleg Tkachenko wrote: > John Gentilin wrote: > > > I want to include windows fonts in my PDF, but not embed them. > > Ahem, what is the difference? Have you tried this way? > "If you do not want the font embedded in the PDF then remove the "embed-file" > attribute. The PDF will then contain text using the font with the font metrics > and to view it properly the font will need to be installed where it is being > viewed." (http://xml.apache.org/fop/fonts.html) > > -- > Oleg Tkachenko > eXperanto team > Multiconn Technologies, Israel > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] -- -- John Gentilin Eye Catching Solutions Inc. 18314 Carlwyn Drive Castro Valley CA 94546 Contact Info [EMAIL PROTECTED] Ca Office 1-510-881-4821 NJ Office 1-732-422-4917 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Including Fonts in 20.4
John Gentilin wrote: I want to include windows fonts in my PDF, but not embed them. Ahem, what is the difference? Have you tried this way? "If you do not want the font embedded in the PDF then remove the "embed-file" attribute. The PDF will then contain text using the font with the font metrics and to view it properly the font will need to be installed where it is being viewed." (http://xml.apache.org/fop/fonts.html) -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]