Package org.docx4j.fonts.fop.fonts
Class FontSetup
java.lang.Object
org.docx4j.fonts.fop.fonts.FontSetup
public class FontSetup
extends java.lang.Object
Default fonts for FOP application; currently this uses PDF's fonts
by default.
Assigns the font (with metrics) to internal names like "F1" and
assigns family-style-weight triplets to the fonts
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Loggerloglogging instance -
Constructor Summary
Constructors Constructor Description FontSetup() -
Method Summary
Modifier and Type Method Description static FontResolvercreateMinimalFontResolver()static voidsetup(FontInfo fontInfo)Sets up a font infostatic voidsetup(FontInfo fontInfo, java.util.List embedFontInfoList, FontResolver resolver)Sets up the font info object.
-
Field Details
-
log
protected static org.slf4j.Logger loglogging instance
-
-
Constructor Details
-
FontSetup
public FontSetup()
-
-
Method Details
-
setup
Sets up a font info- Parameters:
fontInfo- font info
-
setup
public static void setup(FontInfo fontInfo, java.util.List embedFontInfoList, FontResolver resolver)Sets up the font info object. Adds metrics for basic fonts and useful family-style-weight triplets for lookup.- Parameters:
fontInfo- the font info object to set upembedFontInfoList- a list of EmbedFontInfo objectsresolver- the font resolver
-
createMinimalFontResolver
- Returns:
- a new FontResolver to be used by the font subsystem
-