Class XMLWorkerFontProvider
java.lang.Object
com.itextpdf.text.FontFactoryImp
com.itextpdf.tool.xml.XMLWorkerFontProvider
- All Implemented Interfaces:
FontProvider
-
Field Summary
FieldsFields inherited from class FontFactoryImp
defaultEmbedding, defaultEncoding -
Constructor Summary
ConstructorsConstructorDescriptionXMLWorkerFontProvider(String fontsPath) XMLWorkerFontProvider(String fontsPath, HashMap<String, String> fontSubstitutionMap) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFontSubstitute(String font, String substitute) Constructs aFont-object.Constructs aFont-object.voidsetUseUnicode(boolean useUnicode) Methods inherited from class 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:FontFactoryImpConstructs aFont-object.- Specified by:
getFontin interfaceFontProvider- Overrides:
getFontin 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- theBaseColorof this font.- Returns:
- the Font constructed based on the parameters
-
getFont
Description copied from class:FontFactoryImpConstructs aFont-object.- Overrides:
getFontin 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
-