public class AfmFontRegistry extends AbstractFontFileRegistry
Constructor and Description |
---|
AfmFontRegistry() |
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.
|
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() |
FontCache |
getSecondLevelCache() |
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.public String[] getRegisteredFamilies()
public String[] getAllRegisteredFamilies()
public FontFamily getFontFamily(String name)
FontRegistry