Package org.docx4j.fonts.fop.fonts
Class DefaultFontConfig
java.lang.Object
org.docx4j.fonts.fop.fonts.DefaultFontConfig
- All Implemented Interfaces:
FontConfig
public final class DefaultFontConfig extends java.lang.Object implements FontConfig
The font configuration data for the more generic fonts such as TTF and Type1, that are used by
most the renderers.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultFontConfig.DefaultFontConfigParserParses the morge generic font information.static classDefaultFontConfig.DirectoryThe directory to find fonts within.static classDefaultFontConfig.FontRepresents a font object within the FOP conf.Nested classes/interfaces inherited from interface org.docx4j.fonts.fop.fonts.FontConfig
FontConfig.FontConfigParser -
Method Summary
Modifier and Type Method Description java.util.List<DefaultFontConfig.Directory>getDirectories()Returns a list of directories that were parsed.java.util.List<DefaultFontConfig.Font>getFonts()Returns the list of fonts that were parsed.java.util.List<java.lang.String>getReferencedFontFamily()Returns a list of referenced font families.booleanisAutoDetectFonts()Whether or not to enable auto-detecting of fonts in the system.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
getFonts
Returns the list of fonts that were parsed.- Returns:
- a list of fonts
-
getDirectories
Returns a list of directories that were parsed.- Returns:
- a list of directories
-
getReferencedFontFamily
public java.util.List<java.lang.String> getReferencedFontFamily()Returns a list of referenced font families.- Returns:
- the referenced font families
-
isAutoDetectFonts
public boolean isAutoDetectFonts()Whether or not to enable auto-detecting of fonts in the system.- Returns:
- true to enable auto-detect
-