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) |
Font |
getFont(String fontname,
String encoding,
float size,
int style) |
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)
getFont
in interface FontProvider
getFont
in class FontFactoryImp
public Font getFont(String fontname, String encoding, float size, int style)
getFont
in class FontFactoryImp
Copyright © 2017. All rights reserved.