« Return to Thread: Font registration in a static method

Font registration in a static method

by Sam Fuqua :: Rate this Message:

Reply to Author | View in Thread

Hi,

I have a FopFactory being declared in a static method.  I have no control over changing the method to non-static.
When the FopFacotry is created, I try to load a configuration that auto-detects the fonts.  Unfortunately, before I even load the configuration, the FopFactory seems to be created with an existing FontCache with all of my fonts in the failedFontMap.  When I load the configuration, nothing changes and I am unable to use any of my fonts in the XSL.  I am using 0.94.

Is this affected by the fact that it is declared inside of a static method?  Is there anyway to clear the FontCache and still have it reloaded with auto-detect?  I have been able to clear out the FontCache, but it doesn't reload with the auto-detected fonts, so I am still unable to use my fonts.
--
Sam Fuqua
ΣΝ ΘΗ 454

 « Return to Thread: Font registration in a static method