Package com.itextpdf.tool.xml
Class XMLWorkerFontProvider
java.lang.Object
com.itextpdf.text.FontFactoryImp
com.itextpdf.tool.xml.XMLWorkerFontProvider
- All Implemented Interfaces:
FontProvider
-
Field Summary
FieldsFields inherited from class com.itextpdf.text.FontFactoryImp
defaultEmbedding, defaultEncoding
-
Constructor Summary
ConstructorsConstructorDescriptionXMLWorkerFontProvider
(String fontsPath) XMLWorkerFontProvider
(String fontsPath, HashMap<String, String> fontSubstitutionMap) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFontSubstitute
(String font, String substitute) Constructs aFont
-object.Constructs aFont
-object.private Font
getUnicodeFont
(String fontName, String encoding, float size, int style) void
setUseUnicode
(boolean useUnicode) Methods inherited from class com.itextpdf.text.FontFactoryImp
getBaseFont, getFont, getFont, getFont, getFont, getFont, getFont, getFont, getFont, getFont, getFont, getFont, getFont, getRegisteredFamilies, getRegisteredFonts, isRegistered, register, register, registerDirectories, registerDirectory, registerDirectory, registerFamily, saveCopyOfRegularFont
-
Field Details
-
DONTLOOKFORFONTS
- See Also:
-
fontSubstitutionMap
-
useUnicode
protected boolean useUnicode
-
-
Constructor Details
-
XMLWorkerFontProvider
public XMLWorkerFontProvider() -
XMLWorkerFontProvider
-
XMLWorkerFontProvider
-
-
Method Details
-
addFontSubstitute
-
setUseUnicode
public void setUseUnicode(boolean useUnicode) -
getFont
public Font getFont(String fontname, String encoding, boolean embedded, float size, int style, BaseColor color) Description copied from class:FontFactoryImp
Constructs aFont
-object.- Specified by:
getFont
in interfaceFontProvider
- Overrides:
getFont
in classFontFactoryImp
- Parameters:
fontname
- the name of the fontencoding
- the encoding of the fontembedded
- true if the font is to be embedded in the PDFsize
- the size of this fontstyle
- the style of this fontcolor
- theBaseColor
of this font.- Returns:
- the Font constructed based on the parameters
-
getFont
Description copied from class:FontFactoryImp
Constructs aFont
-object.- Overrides:
getFont
in classFontFactoryImp
- Parameters:
fontname
- the name of the fontencoding
- the encoding of the fontsize
- the size of this fontstyle
- the style of this font- Returns:
- the Font constructed based on the parameters
-
getUnicodeFont
-