AW: AW: Usage of Font.getWordWidth()

2008-12-18 Thread Georg Datterl
Hi Jeremias, I now have this code: FopFactory fopFactory = FopFactory.newInstance(); fopFactory.setUserConfig(new File(fonts/fop.xconf)); FOUserAgent foUserAgent = fopFactory.newFOUserAgent(); RendererFactory rf = new RendererFactory(); Renderer r = rf.createRenderer(foUserAgent,

AW: AW: Usage of Font.getWordWidth()

2008-12-18 Thread Georg Datterl
: Donnerstag, 18. Dezember 2008 13:22 An: fop-users@xmlgraphics.apache.org Betreff: AW: AW: Usage of Font.getWordWidth() Hi Jeremias, I now have this code: FopFactory fopFactory = FopFactory.newInstance(); fopFactory.setUserConfig(new File(fonts/fop.xconf)); FOUserAgent foUserAgent

Re: AW: AW: Usage of Font.getWordWidth()

2008-12-18 Thread Jeremias Maerki
FOP's internal unit is millipoints. Set fontSize in millipoints and the results will be more useful. On 18.12.2008 13:21:39 Georg Datterl wrote: Hi Jeremias, I now have this code: FopFactory fopFactory = FopFactory.newInstance(); fopFactory.setUserConfig(new File(fonts/fop.xconf));

AW: AW: AW: Usage of Font.getWordWidth()

2008-12-18 Thread Georg Datterl
@xmlgraphics.apache.org Betreff: Re: AW: AW: Usage of Font.getWordWidth() FOP's internal unit is millipoints. Set fontSize in millipoints and the results will be more useful. On 18.12.2008 13:21:39 Georg Datterl wrote: Hi Jeremias, I now have this code: FopFactory fopFactory = FopFactory.newInstance

Re: Usage of Font.getWordWidth()

2008-12-17 Thread Jeremias Maerki
Uhm, why would you want to do such a thing in an XSL-FO environment? Anyway, you need access to the FontInfo object that is attached to the PDFRenderer (somehow). If you set up the PDFRenderer yourself and set it using FOUserAgent.setRendererOverride(), that could work. From there, you can get a

Usage of Font.getWordWidth()

2008-12-17 Thread Georg Datterl
Hi everybody, Maybe it's too late in the year for my brain to work properly, but I want to call Font.getWordWidth(String) to find out how much space a string will take in the finished PDF, but I can't figure out how I can get the Font object given the values for font-family and font-size

Re: AW: Usage of Font.getWordWidth()

2008-12-17 Thread Jeremias Maerki
: www.willmycc.de -Ursprüngliche Nachricht- Von: Jeremias Maerki [mailto:d...@jeremias-maerki.ch] Gesendet: Mittwoch, 17. Dezember 2008 17:32 An: fop-users@xmlgraphics.apache.org Betreff: Re: Usage of Font.getWordWidth() Uhm, why would you want to do such a thing in an XSL-FO environment

AW: Usage of Font.getWordWidth()

2008-12-17 Thread Georg Datterl
:www.willmy.de Willmy Consult Content GmbH: www.willmycc.de -Ursprüngliche Nachricht- Von: Jeremias Maerki [mailto:d...@jeremias-maerki.ch] Gesendet: Mittwoch, 17. Dezember 2008 17:32 An: fop-users@xmlgraphics.apache.org Betreff: Re: Usage of Font.getWordWidth