You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Noll, Jeffrey T HS" <je...@hs.utc.com> on 2006/03/29 23:07:32 UTC

Userconfig/font help

I'm not sure why I'm having so much trouble, but for the life of my I can't
get fonts recoginized. I've gone through and converted them all to xml
metrics filed and placed them in a directory.

The user config is being called through a servlet and I'm just really
confused as to what the directory paths to everything should be.

The server is bea weblogic and I have the config file in
applications\CalicoApp\Web-inf\config\fopconfig.xml
I have my fonts directory as applications\CalicoApp\Web-inf\fonts

In this directory are all of the xml metrics files.
How do I reference them in the fopconfig.xml though?

I see there is a fontbasedir, but I'm can't figure out what that should be.
Should I set it to the whole path of the fonts directory? And how is the
path for the metrics files stated? The docs on the apache site haven't
really cleared this whole thing up much.

Thanks,

	Jeff


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Userconfig/font help

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
The quick&dirty solution is simply to use the absolute path to the files,
i.e. you could simply set the full path to the fonts directory as
fontbasedir. The base dir should be the same for the metrics as for the
font files.

In FOP Trunk (latest source code) we recently added a special feature
which allows you to reference files through the ServletContext using
special URIs of the form: "servlet-context:/WEB-INF/fonts/myfont.xml"
This is done using the ServletContextURIResolver in the servlet package.
But that may not be an option for you right now given that you're on
0.20.5. Still, you might want to consider an upgrade.

On 29.03.2006 23:07:32 Noll, Jeffrey T           HS wrote:
> I'm not sure why I'm having so much trouble, but for the life of my I can't
> get fonts recoginized. I've gone through and converted them all to xml
> metrics filed and placed them in a directory.
> 
> The user config is being called through a servlet and I'm just really
> confused as to what the directory paths to everything should be.
> 
> The server is bea weblogic and I have the config file in
> applications\CalicoApp\Web-inf\config\fopconfig.xml
> I have my fonts directory as applications\CalicoApp\Web-inf\fonts
> 
> In this directory are all of the xml metrics files.
> How do I reference them in the fopconfig.xml though?
> 
> I see there is a fontbasedir, but I'm can't figure out what that should be.
> Should I set it to the whole path of the fonts directory? And how is the
> path for the metrics files stated? The docs on the apache site haven't
> really cleared this whole thing up much.


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org