Package org.docx4j.fonts.fop.fonts
Class DefaultFontConfigurator
java.lang.Object
org.docx4j.fonts.fop.fonts.DefaultFontConfigurator
- All Implemented Interfaces:
FontConfigurator<EmbedFontInfo>
public class DefaultFontConfigurator extends java.lang.Object implements FontConfigurator<EmbedFontInfo>
The default configurator for fonts. This configurator can configure the more generic fonts used
by the renderers i.e. TTF, Type1 etc...
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Loggerloglogger instance -
Constructor Summary
Constructors Constructor Description DefaultFontConfigurator(FontManager fontManager, FontEventListener listener, boolean strict)Main constructor -
Method Summary
Modifier and Type Method Description java.util.List<EmbedFontInfo>configure(FontConfig fontInfoConfig)Initializes font info settings from the user configurationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
log
protected static final org.slf4j.Logger loglogger instance
-
-
Constructor Details
-
DefaultFontConfigurator
public DefaultFontConfigurator(FontManager fontManager, FontEventListener listener, boolean strict)Main constructor- Parameters:
fontManager- the font managerlistener- the font event listenerstrict- true if an Exception should be thrown if an error is found.
-
-
Method Details
-
configure
Initializes font info settings from the user configuration- Specified by:
configurein interfaceFontConfigurator<EmbedFontInfo>- Returns:
- a font info list
- Throws:
FOPException- if an exception occurs while processing the configuration
-