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,
: 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
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));
@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
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
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
: 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
: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