Perry Molendijk wrote:
BlankDoes anyone know what the correct way is to use relative paths when
trying to embed fonts for use by FOP.
...
   <font metrics-file="WEB-INF/fop-fonts/arial.xml" kerning="yes"
embed-file="WEB-INF/fop-fonts/arial.ttf">

Older FOP releases as included with C2.0.4, metrics-file is an URL which won't work reliably if a relative URL is supplied (depends on unspecified library behaviour), and embed-file is a real filename with will be resolved against the CWD of the JVM process.

You can get the most recent FOP release and drop the jar into your
WEB-INF/lib. It will resolve relative paths againts the fontBaseDir
configuration setting, or if this is not set, baseDir.

J.Pietschmann


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to