Package org.apache.fop.fonts
Class FontSetup
java.lang.Object
org.apache.fop.fonts.FontSetup
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
addConfiguredFonts
(FontInfo fontInfo, List<EmbedFontInfo> embedFontInfoList, int num, InternalResourceResolver resourceResolver, boolean base14Kerning) Add fonts from configuration file starting with internal name F. static void
Sets up a font infostatic void
setup
(FontInfo fontInfo, List embedFontInfoList, InternalResourceResolver resourceResolver, boolean base14Kerning) Sets up the font info object.
-
Constructor Details
-
FontSetup
private FontSetup()
-
-
Method Details
-
setup
Sets up a font info- Parameters:
fontInfo
- font infobase14Kerning
- true if base14 kerning applies
-
setup
public static void setup(FontInfo fontInfo, List embedFontInfoList, InternalResourceResolver resourceResolver, boolean base14Kerning) 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 objectsresourceResolver
- the font resolverbase14Kerning
- true if base14 kerning applies
-
addConfiguredFonts
private static void addConfiguredFonts(FontInfo fontInfo, List<EmbedFontInfo> embedFontInfoList, int num, InternalResourceResolver resourceResolver, boolean base14Kerning) Add fonts from configuration file starting with internal name F. - Parameters:
fontInfo
- the font info to set upembedFontInfoList
- a list of EmbedFontInfo objectsnum
- starting index for internal font numberingresourceResolver
- the font resolver
-