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