Adrian, Thanks for your reply.
I am trying to package a web application that also contains a bunch of fonts stored in a directory and a fop config file. Everything is packed in war and deployed on tomcat. So I want to tell fop in the webapp where to look for fonts, but depending on how tomcat is installed that could be a completely separate path. Until now I located the fop config file through the classloader and because the fonts directory is fixed relative to the fop config file I could set the base url for font resolution. Worked fine, but I now want to use the new fop font features avoiding the hassle of the measurement files. I hope you see what I am trying to do Thanks for you help, Peter Adrian Cumiskey wrote: > > Hi Peter, > > I'm not quite sure why this feature would be useful, maybe it would be > helpful if you could explain your requirement for this? Currently there > is > no public API for this. Anyhow, if you really need to make a programmatic > customization you might want to take a look at > buildFontListFromConfiguration() in > src/java/org/apache/fop/render/PrintRendererConfigurator.java. > > Hope this helps, > > Adrian. > > On 30/10/2007, Peter Coppens <[EMAIL PROTECTED]> wrote: >> >> >> Dear Fop-fans, >> >> Is there a way, using the API to change the font directory as configured >> in >> the <directory> element in the config file. >> >> I can find the value somewhere deep in the user configuration object >> (FopFactory.getUserConfig) and I guess I could change that value, but I >> am >> not sure whether that would actually do something useful. >> >> Thanks, >> >> Peter >> -- >> View this message in context: >> http://www.nabble.com/FOP-0.94---API-access-to-font-directory-tf4720666.html#a13495749 >> Sent from the FOP - Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/FOP-0.94---API-access-to-font-directory-tf4720666.html#a13499793 Sent from the FOP - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
