Looking at the source code, you'd need to do the following:
- Subclass the Renderer implementation (ex. PDFRenderer) so you gain
access to the protected fontList member variable.
- Fill the fontList variable much like
FontSetup.buildFontListFromConfiguration() does. This code will need to
run before you start the rendering run or at least before
PrintRenderer.setupFontInfo() is called.
- Instantiate your subclassed Renderer yourself and set it on the
FOUserAgent using setRendererOverride().

Have fun!

On 26.01.2006 16:59:17 Stefan Burkard wrote:
> hi fop-users
> 
> i know i can use a custom font by building an xml-file with it's 
> kerning-values and configuring a font definition in the user-config-file.
> 
> but how can i include the font programatically? i don't like to have a 
> user-config-file at all. i found examples to set the font-directory or 
> base-directory programatically, but i didn't found an example for 
> configuring fonts directly in java.
> 
> can anybody help me?
> thanks
> stefan


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to