public abstract class AbstractFontFileRegistry extends Object implements FontRegistry
| Modifier and Type | Method and Description |
|---|---|
String[] |
getAllRegisteredFamilies() |
FontFamily |
getFontFamily(String name)
Tries to find a font family with the given name, looking through all
alternative font names if neccessary.
|
String[] |
getRegisteredFamilies() |
void |
initialize() |
void |
registerDefaultFontPath()
Register os-specific font paths to the PDF-FontFactory.
|
void |
registerFontFile(File file,
String encoding) |
void |
registerFontFile(String filename,
String encoding)
Register the font (must end this *.ttf) to the FontFactory.
|
void |
registerFontPath(File file,
String encoding)
Register all fonts (*.ttf files) in the given path.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateMetricsFactory, getSecondLevelCachepublic void initialize()
initialize in interface FontRegistrypublic void registerDefaultFontPath()
public String[] getRegisteredFamilies()
getRegisteredFamilies in interface FontRegistrypublic String[] getAllRegisteredFamilies()
getAllRegisteredFamilies in interface FontRegistrypublic FontFamily getFontFamily(String name)
FontRegistrygetFontFamily in interface FontRegistrypublic void registerFontPath(File file, String encoding)
file - the directory that contains the font files.encoding - the encoding for the given font.public void registerFontFile(String filename, String encoding)
filename - the filename.encoding - the encoding.