public class XMLWorkerFontProvider extends FontFactoryImp
Modifier and Type | Field and Description |
---|---|
static String |
DONTLOOKFORFONTS |
protected HashMap<String,String> |
fontSubstitutionMap |
protected boolean |
useUnicode |
defaultEmbedding, defaultEncoding
Constructor and Description |
---|
XMLWorkerFontProvider() |
XMLWorkerFontProvider(String fontsPath) |
XMLWorkerFontProvider(String fontsPath, HashMap<String,String> fontSubstitutionMap) |
Modifier and Type | Method and Description |
---|---|
void |
addFontSubstitute(String font, String substitute) |
Font |
getFont(String fontname, String encoding, boolean embedded, float size, int style, BaseColor color)
Constructs a Font -object.
|
Font |
getFont(String fontname, String encoding, float size, int style)
Constructs a Font -object.
|
void |
setUseUnicode(boolean useUnicode) |
getBaseFont, getFont, getFont, getFont, getFont, getFont, getFont, getFont, getFont, getFont, getFont, getFont, getFont, getRegisteredFamilies, getRegisteredFonts, isRegistered, register, register, registerDirectories, registerDirectory, registerDirectory, registerFamily, saveCopyOfRegularFont
public static final String DONTLOOKFORFONTS
protected boolean useUnicode
public XMLWorkerFontProvider()
public XMLWorkerFontProvider(String fontsPath)
public void setUseUnicode(boolean useUnicode)
public Font getFont(String fontname, String encoding, boolean embedded, float size, int style, BaseColor color)
FontFactoryImp
Font
-object.
getFont
in interface FontProvider
getFont
in class FontFactoryImp
fontname
- the name of the font
encoding
- the encoding of the font
embedded
- true if the font is to be embedded in the PDF
size
- the size of this font
style
- the style of this font
color
- the BaseColor
of this font.
public Font getFont(String fontname, String encoding, float size, int style)
FontFactoryImp
Font
-object.
getFont
in class FontFactoryImp
fontname
- the name of the font
encoding
- the encoding of the font
size
- the size of this font
style
- the style of this font
Copyright © 2016. All rights reserved.