RE: Adding Fonts - Must I use absolute paths in fopconfig.xml?

2002-05-02 Thread Scott Moore


> -Original Message-
> From: Keiron Liddle [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 02, 2002 4:15 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Adding Fonts - Must I use absolute paths in 
> fopconfig.xml?
> 
> 
> 
> This is a bug. The base is ignored when reading font information.
> 

Thanks for the info.  I've figured out a workaround, which is to read in
fopconfig.xml into a DOM and add the necessary base directory path of my
servlet to the DOM, save it to a temporary file and then load that temporary
fopconfig.xml into FOP.   Not the ideal situation, but you gotta do what you
gotta do...


Re: Adding Fonts - Must I use absolute paths in fopconfig.xml?

2002-05-02 Thread Keiron Liddle
This is a bug. The base is ignored when reading font information.
On 2002.05.01 15:23 Scott Moore wrote:
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:

This doesn't:

Am I doing something wrong, or is this a bug?
Thanks for any help,
Scott



Adding Fonts - Must I use absolute paths in fopconfig.xml?

2002-05-01 Thread Scott Moore
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:



This doesn't:




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

Thanks for any help,
Scott