Package org.apache.fop.fonts
Class DefaultFontConfig.DefaultFontConfigParser
java.lang.Object
org.apache.fop.fonts.DefaultFontConfig.DefaultFontConfigParser
- All Implemented Interfaces:
FontConfig.FontConfigParser
- Enclosing class:
- DefaultFontConfig
public static final class DefaultFontConfig.DefaultFontConfigParser
extends Object
implements FontConfig.FontConfigParser
Parses the morge generic font information.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionparse
(Configuration cfg, boolean strict) Parses the font configuration and return the configuration object.parse
(Configuration cfg, boolean strict, FontEventAdapter eventAdapter) parse
(Configuration cfg, FontManager fontManager, boolean strict, org.apache.fop.events.EventProducer eventProducer) Parse the font configuration and return an object containing all the necessary data.
-
Constructor Details
-
DefaultFontConfigParser
public DefaultFontConfigParser()
-
-
Method Details
-
parse
Parses the font configuration and return the configuration object.- Parameters:
cfg
- the configuration datastrict
- whether or not to enforce strict validation- Returns:
- the font configuration object
- Throws:
FOPException
- if an error occurs when creating the configuration object
-
parse
public DefaultFontConfig parse(Configuration cfg, boolean strict, FontEventAdapter eventAdapter) throws FOPException - Throws:
FOPException
-
parse
public FontConfig parse(Configuration cfg, FontManager fontManager, boolean strict, org.apache.fop.events.EventProducer eventProducer) throws FOPException Parse the font configuration and return an object containing all the necessary data.- Specified by:
parse
in interfaceFontConfig.FontConfigParser
- Parameters:
cfg
- the configuration objectfontManager
- the font managerstrict
- whether or not to enforce strict validationeventProducer
- the event producer for handling font events- Returns:
- the configuration object
- Throws:
FOPException
- if an error occurs creating the font configuration object
-