It's passing out a message using org.apache.commons.logging.Log.warn().
If you can't get that method to throw out an error, you can just
download the fop source, change the font method, and recompile.
The message is in org.apache.fop.fonts.FontInfo.notifyFontReplacement().
Have you gotten it to find the font?  Why then wouldn't the font be
found? 

-----Original Message-----
From: Bas van den Broek [mailto:[email protected]] 
Sent: Monday, June 28, 2010 12:46 PM
To: [email protected]
Subject: want to catch missing font warnings

Hi all,

I am using FOP 0.95 and my fo file contains an unknown font to the
library. This is the warning I get:

WARNING: Font 'fakefont,normal,400' not found. Substituting with
'any,normal,400'.

I would like to be able to catch this warning 'cause in my case I don't
want to continue if a font cannot be found. Is there a way to do this? I
could not find this in the documentation.

Kind regards,

Bas van den Broek

---------------------------------------------------------------------
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]

Reply via email to