Hello,
On 12/10/06, J.Pietschmann <[EMAIL PROTECTED]> wrote:
Michael J. Mueller wrote:
> when a font is not found I just get logging but the exception is swallowed.
...
> Is is possible to get an exception from Apache FOP in this case.
No, I'm afraid. You can however try to watch the log automatically
using a custom logger.
I was wrong about the exception being swallowed. I just found out that
it is possible to catch this error by setting an ErrorListener on the
transformer instance. If the font metrics file cannot be loaded the
fatal error handler method of the ErrorListener is invoked.
I'm not a 100 percent sure what to do with warnings and normal errors.
I'm also stopping on those error which works fine for now. (I haven't
encountered warnings and normal errors yet.)
If you can come up with a sensible spec what should happen if a font
file isn't found, please open a bug in bugzilla with the description,
which might allows us to implement it.
The present situation is fine.
Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]