org.pentaho.reporting.libraries.fonts.truetype
public class TrueTypeFontRegistry extends AbstractFontFileRegistry
| Constructor and Description |
|---|
TrueTypeFontRegistry() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addFont(java.io.File file,
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() |
protected static FontCache |
internalGetSecondLevelCache() |
protected void |
loadFromCache(java.lang.String encoding) |
protected void |
storeToCache(java.lang.String encoding) |
createStorageLocation, getDefaultEncoding, getSeenFiles, initialize, isCached, isCacheValid, registerDefaultFontPath, registerFontFile, registerFontFile, registerFontPath, safeSystemGetPropertyprotected static FontCache internalGetSecondLevelCache()
public FontCache getSecondLevelCache()
protected java.io.FileFilter getFileFilter()
getFileFilter in class AbstractFontFileRegistryprotected boolean addFont(java.io.File file,
java.lang.String encoding)
throws java.io.IOException
AbstractFontFileRegistryaddFont in class AbstractFontFileRegistryfile - 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)
FontRegistrypublic FontMetricsFactory createMetricsFactory()
protected void loadFromCache(java.lang.String encoding)
loadFromCache in class AbstractFontFileRegistryprotected void storeToCache(java.lang.String encoding)
storeToCache in class AbstractFontFileRegistry