cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.Pietschmann" <j3322...@yahoo.de>
Subject Re: FOP, userconfig.xml and relative paths
Date Thu, 03 Jul 2003 17:24:52 GMT
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message