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, wait
createMetricsFactory, getSecondLevelCache
public void initialize()
initialize
in interface FontRegistry
public void registerDefaultFontPath()
public String[] getRegisteredFamilies()
getRegisteredFamilies
in interface FontRegistry
public String[] getAllRegisteredFamilies()
getAllRegisteredFamilies
in interface FontRegistry
public FontFamily getFontFamily(String name)
FontRegistry
getFontFamily
in interface FontRegistry
public 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.