public class AfmFontRegistry extends AbstractFontFileRegistry
Constructor and Description |
---|
AfmFontRegistry()
Fonts stored by name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addFont(File font,
String encoding)
Adds the fontname by creating the basefont object.
|
FontMetricsFactory |
createMetricsFactory()
Creates a new font metrics factory.
|
FontCache |
getSecondLevelCache() |
getAllRegisteredFamilies, getFontFamily, getRegisteredFamilies, initialize, registerDefaultFontPath, registerFontFile, registerFontFile, registerFontPath
public FontMetricsFactory createMetricsFactory()
FontRegistry
public FontCache getSecondLevelCache()
public boolean addFont(File font, String encoding) throws IOException
font
- the font file name.encoding
- the encoding.IOException
- if the base font file could not be read.