org.pentaho.reporting.libraries.fonts.pfm
public class PfmFontRegistry extends AbstractFontFileRegistry
| Constructor and Description |
|---|
PfmFontRegistry() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addFont(java.io.File font,
java.lang.String encoding)
Adds the fontname by creating the basefont object.
|
FontMetricsFactory |
createMetricsFactory()
Creates a new font metrics factory.
|
java.lang.String[] |
getAllRegisteredFamilies() |
protected java.io.FileFilter |
getFileFilter() |
FontFamily |
getFontFamily(java.lang.String name)
Tries to find a font family with the given name, looking through all
alternative font names if neccessary.
|
java.lang.String[] |
getRegisteredFamilies() |
FontCache |
getSecondLevelCache() |
boolean |
isItextCompatibleChecks() |
protected void |
loadFromCache(java.lang.String encoding) |
void |
setItextCompatibleChecks(boolean itextCompatibleChecks) |
protected void |
storeToCache(java.lang.String encoding) |
createStorageLocation, getDefaultEncoding, getSeenFiles, initialize, isCached, isCacheValid, registerDefaultFontPath, registerFontFile, registerFontFile, registerFontPath, safeSystemGetPropertypublic boolean isItextCompatibleChecks()
public void setItextCompatibleChecks(boolean itextCompatibleChecks)
protected java.io.FileFilter getFileFilter()
getFileFilter in class AbstractFontFileRegistrypublic FontMetricsFactory createMetricsFactory()
FontRegistrypublic FontCache getSecondLevelCache()
public boolean addFont(java.io.File font,
java.lang.String encoding)
throws java.io.IOException
addFont in class AbstractFontFileRegistryfont - the font file name.encoding - the encoding.java.io.IOException - if the base font file could not be read.public java.lang.String[] getRegisteredFamilies()
public java.lang.String[] getAllRegisteredFamilies()
public FontFamily getFontFamily(java.lang.String name)
FontRegistryprotected void loadFromCache(java.lang.String encoding)
loadFromCache in class AbstractFontFileRegistryprotected void storeToCache(java.lang.String encoding)
storeToCache in class AbstractFontFileRegistry