FontRegistry
AfmFontRegistry
, PfmFontRegistry
, TrueTypeFontRegistry
public abstract class AbstractFontFileRegistry extends java.lang.Object implements FontRegistry
Modifier and Type | Method | 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.
|
createMetricsFactory, getAllRegisteredFamilies, getFontFamily, getRegisteredFamilies, getSecondLevelCache
public void initialize()
initialize
in interface FontRegistry
public 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)