TTFReader and MacOsX .ttf fonts
Hi. I am using version 0.91 beta. I am trying to register OS fonts with FOP, in order to embed them in PDF documents. On MS windows this works fine, but on MacOSX almost all of the .ttf-fonts cannot be read by the org.apache.fop.fonts.apps.TTFReader. I get an unsupported format error, fx: - Number of glyphs in font: 841 - 2 cmap tables - Unicode cmap table not present - Unsupported format: Aborting And the reader returns null. As far as I know, the .ttf format on Mac is not exactly the same as on windows, so the output is fairly fair, but not being able to read .ttf files on other platforms kind of disables the platform transparency advantage of Java. And then to the question: Does anyone know a workaround - fx a Java converter from Mac .ttf to windows .ttf or do I have to write my own MacTTFReader? Thanks in advance. - Torben -- __ Torben Lauritzen System development CLC bio A/S Science Park Aarhus Gustav Wieds Vej 10 8000 Aarhus C Denmark www.clcbio.com [EMAIL PROTECTED] Contact numbers: Telephone: +45 70 22 32 44 Fax: +45 86 20 12 22 CLC bio A/S Disclaimer: --- Any information contained in this e-mail and/or any attachments is confidential, and only intended for reception and use by the specified person. If you are not the intended recipient, please return the email to the sender and delete it afterwards. In this case any copying, forwarding, printing, disclosure and use is strictly prohibited. --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TTFReader and MacOsX .ttf fonts
I've never had my fingers on a Mac-specific TrueType font. And I can't remember this ever coming up, yet. If the Mac fonts are really a little different, I guess the TrueType parser should be extended to handle this subformat, too. That's probably the cleanest approach. However, since work is still ongoing to use FOrayFont instead of our own font library (actually FOrayFont is a spin-off off FOP code), things may get a little more complicated. But I assume it should be relatively simple to port the changes from FOP to FOrayFont when necessary. The alternative you have is to simply get the Windows version of your TrueType fonts and use them. On 17.02.2006 10:41:06 Torben Lauritzen wrote: Hi. I am using version 0.91 beta. I am trying to register OS fonts with FOP, in order to embed them in PDF documents. On MS windows this works fine, but on MacOSX almost all of the .ttf-fonts cannot be read by the org.apache.fop.fonts.apps.TTFReader. I get an unsupported format error, fx: - Number of glyphs in font: 841 - 2 cmap tables - Unicode cmap table not present - Unsupported format: Aborting And the reader returns null. As far as I know, the .ttf format on Mac is not exactly the same as on windows, so the output is fairly fair, but not being able to read .ttf files on other platforms kind of disables the platform transparency advantage of Java. And then to the question: Does anyone know a workaround - fx a Java converter from Mac .ttf to windows .ttf or do I have to write my own MacTTFReader? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TTFReader and MacOsX .ttf fonts
Thank you for the quick answer. I did not know about the FOrayFont project. One of the entries on the plan for the project is: Support TrueType Fonts in Macintosh format So there is some focus on the issue. The application I am working on is a commercial product, and I do not think our customers are willing/able to obtain windows TrueType fonts, for use in our application :-( I think I will follow the FOrayFont project closely, and try to convince my boss that at the moment, we will have to settle with the build-in fonts in PDF. - Torben Jeremias Maerki wrote: I've never had my fingers on a Mac-specific TrueType font. And I can't remember this ever coming up, yet. If the Mac fonts are really a little different, I guess the TrueType parser should be extended to handle this subformat, too. That's probably the cleanest approach. However, since work is still ongoing to use FOrayFont instead of our own font library (actually FOrayFont is a spin-off off FOP code), things may get a little more complicated. But I assume it should be relatively simple to port the changes from FOP to FOrayFont when necessary. The alternative you have is to simply get the Windows version of your TrueType fonts and use them. On 17.02.2006 10:41:06 Torben Lauritzen wrote: Hi. I am using version 0.91 beta. I am trying to register OS fonts with FOP, in order to embed them in PDF documents. On MS windows this works fine, but on MacOSX almost all of the .ttf-fonts cannot be read by the org.apache.fop.fonts.apps.TTFReader. I get an unsupported format error, fx: - Number of glyphs in font: 841 - 2 cmap tables - Unicode cmap table not present - Unsupported format: Aborting And the reader returns null. As far as I know, the .ttf format on Mac is not exactly the same as on windows, so the output is fairly fair, but not being able to read .ttf files on other platforms kind of disables the platform transparency advantage of Java. And then to the question: Does anyone know a workaround - fx a Java converter from Mac .ttf to windows .ttf or do I have to write my own MacTTFReader? Jeremias Maerki - 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]