public static final class DefaultFontConfig.DefaultFontConfigParser extends Object implements FontConfig.FontConfigParser
Constructor and Description |
---|
DefaultFontConfigParser() |
Modifier and Type | Method and Description |
---|---|
DefaultFontConfig |
parse(Configuration cfg,
boolean strict)
Parses the font configuration and return the configuration object.
|
DefaultFontConfig |
parse(Configuration cfg,
boolean strict,
FontEventAdapter eventAdapter) |
FontConfig |
parse(Configuration cfg,
FontManager fontManager,
boolean strict,
EventProducer eventProducer)
Parse the font configuration and return an object containing all the necessary data.
|
public DefaultFontConfig parse(Configuration cfg, boolean strict) throws FOPException
cfg
- the configuration datastrict
- whether or not to enforce strict validationFOPException
- if an error occurs when creating the configuration objectpublic DefaultFontConfig parse(Configuration cfg, boolean strict, FontEventAdapter eventAdapter) throws FOPException
FOPException
public FontConfig parse(Configuration cfg, FontManager fontManager, boolean strict, EventProducer eventProducer) throws FOPException
parse
in interface FontConfig.FontConfigParser
cfg
- the configuration objectfontManager
- the font managerstrict
- whether or not to enforce strict validationeventProducer
- the event producer for handling font eventsFOPException
- if an error occurs creating the font configuration objectCopyright © 2025 Apache Software Foundation. All rights reserved.