I've got my own servlet with FOP which reads a fopconfig.xml file that I
deploy with the servlet.  So far, so good.

However, when I added fonts to fopconfig.xml, I had a bunch of problems
until I hardcoded the path to the font under my servlet.  Obviously, this is
a problem because my servlet (supposedly) can be deployed anywhere and I
need to use a relative path for the font files.

I set the baseDir beforehand, but that doesn't seem to help.

This works:

<font metrics-file="C:\tomcat\webapps\reportserver\Conf\arial.xml"
kerning="yes" embed-file="C:\tomcat\webapps\reportserver\Conf\arial.ttf">

This doesn't:

<font metrics-file="Conf/arial.xml" kerning="yes"
embed-file="Conf/arial.ttf">


Am I doing something wrong, or is this a bug?

Thanks for any help,
Scott

Reply via email to