org.apache.fop.render
Class PrintRendererConfigurator
- RendererConfigurator
public class PrintRendererConfigurator
Base Print renderer configurator (mostly handles font configuration)
protected static Log | log - logger instance
|
log
protected static Log log
logger instance
PrintRendererConfigurator
public PrintRendererConfigurator(FOUserAgent userAgent)
Default constructor
buildFontListFromConfiguration
public static List buildFontListFromConfiguration(Configuration cfg,
String fontBaseURL,
FontResolver fontResolver,
boolean strict,
FontCache fontCache)
throws FOPException
Builds a list of EmbedFontInfo objects for use with the setup() method.
cfg
- Configuration objectfontBaseURL
- the base URL to resolve relative font URLs withfontResolver
- the FontResolver to usestrict
- true if an Exception should be thrown if an error is found.fontCache
- the font cache (or null if it is disabled)
- a List of EmbedFontInfo objects.
FOPException
- If an error occurs while processing the configuration
getFontInfoFromConfiguration
public static EmbedFontInfo getFontInfoFromConfiguration(Configuration fontCfg,
FontResolver fontResolver,
boolean strict,
FontCache fontCache)
throws FOPException
Returns a font info from a font node Configuration definition
fontCfg
- Configuration object (font node)fontResolver
- font resolver used to resolve fontstrict
- validate configuration strictlyfontCache
- the font cache (or null if it is disabled)
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.