public abstract class AbstractFontFileRegistry extends java.lang.Object implements FontRegistry
| Modifier and Type | Method and Description |
|---|---|
void |
initialize() |
void |
registerDefaultFontPath()
Register os-specific font paths to the PDF-FontFactory.
|
void |
registerFontFile(java.io.File file,
java.lang.String encoding) |
void |
registerFontFile(java.lang.String filename,
java.lang.String encoding)
Register the font (must end this *.ttf) to the FontFactory.
|
void |
registerFontPath(java.io.File file,
java.lang.String encoding)
Register all fonts (*.ttf files) in the given path.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateMetricsFactory, getAllRegisteredFamilies, getFontFamily, getRegisteredFamilies, getSecondLevelCachepublic void initialize()
initialize in interface FontRegistrypublic void registerDefaultFontPath()
public void registerFontPath(java.io.File file,
java.lang.String encoding)
file - the directory that contains the font files.encoding - the encoding for the given font.public void registerFontFile(java.lang.String filename,
java.lang.String encoding)
filename - the filename.encoding - the encoding.public void registerFontFile(java.io.File file,
java.lang.String encoding)