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 Martin Norbäck Olivers <ma...@soleilit.se> on 2013/12/03 15:40:36 UTC
distributing fonts with web application
Hi,
We're making a web application that includes fop and we would like to distribute fonts to be used by fop.
I've configured the following in config.xml to be able to use our fonts:
<?xml version="1.0" encoding="UTF-8"?>
<fop version="1.0">
<renderers>
<renderer mime="application/pdf">
<fonts>
<directory>WEB-INF/xsl-fo/fonts</directory>
</fonts>
<auto-detect/>
</renderer>
</renderers>
</fop>
But anything but an absolute path in <directory> does not work. It seems that FOP is not able to get fonts from a relative path with the <directory> directive.
It does not use the baseURL or fontManager.fontBaseURL.
Since I don't know which path the application will be deployed to I'm wondering if anybody has a solution to this. I can't modify the path manually after deployment, and installing the fonts on the server separately from the web application is not a good option either.
Thanks in advance,
Martin
Re: distributing fonts with web application
Posted by Martin Norbäck Olivers <ma...@soleilit.se>.
Hey, that's a good idea! Thanks!
Hälsningar Martin
> 3 dec 2013 kl. 17:41 skrev "Registar Man" <sz...@gmail.com>:
>
> Hi,
>
> I was have the same problem and my solution is:
> The web application modifiers the config file's all directory node's value to the correct path getting from system before start one FOP job.
> I don't use FOP too much times per hour.
>
> Bye, Csaba
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: distributing fonts with web application
Posted by Registar Man <sz...@gmail.com>.
Hi,
I was have the same problem and my solution is:
The web application modifiers the config file's all directory node's
value to the correct path getting from system before start one FOP job.
I don't use FOP too much times per hour.
Bye, Csaba
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org