public class PfmFontRegistry extends AbstractFontFileRegistry
Constructor and Description |
---|
PfmFontRegistry() |
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() |
boolean |
isItextCompatibleChecks() |
void |
setItextCompatibleChecks(boolean itextCompatibleChecks) |
initialize, registerDefaultFontPath, registerFontFile, registerFontFile, registerFontPath
public boolean isItextCompatibleChecks()
public void setItextCompatibleChecks(boolean itextCompatibleChecks)
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