Stop font load error

Having trouble installing Oxygen PDF Chemistry? Got a bug to report? Post it all here.
bloodnok
Posts: 54
Joined: Mon Jun 27, 2011 10:51 pm

Stop font load error

Post by bloodnok »

Running Chemistry, I see the following error

Code: Select all

[exec] WARN org.apache.fop.apps.FOUserAgent - Unable to load font file: file:/System/Library/Fonts/Apple%20Color%20Emoji.ttc. Reason: java.io.IOException: Font is too large. If you need this font in your PDF, see the userguide about increasing the maximum memory size for the publishing process. The font file size was: 207931344 bytes
I've no interest in Emoji fonts (I'd delete them from my machine if Apple hadn't made them a system requirement). How do I tell Chemistry not to try loading them?

Thanks
Dan
Posts: 501
Joined: Mon Feb 03, 2003 10:56 am

Re: Stop font load error

Post by Dan »

Hello,

This is just a warning, has no effect on the publishing.

In any case, there is a chemistry-fop.xconf file (you can try a recursive search in the installation folder) in which you can change the way the system fonts are scanned. You can remove the <auto-detect/> element from it. Be aware that all the fonts referred from your customization CSS should be relative to the CSS, defined with @font-face. You should not use any system font in this case.

Many regards,
Dan
Post Reply