org.pentaho.reporting.libraries.fonts.registry
public abstract class AbstractFontFileRegistry extends Object implements FontRegistry
Constructor Summary | |
---|---|
protected | AbstractFontFileRegistry() |
Method Summary | |
---|---|
protected abstract boolean | addFont(File font, String encoding)
Adds the fontname by creating the basefont object. |
protected File | createStorageLocation() |
protected String | getDefaultEncoding() |
protected abstract FileFilter | getFileFilter() |
protected HashMap | getSeenFiles() |
void | initialize() |
protected boolean | isCached(File file) |
protected boolean | isCacheValid(HashMap cachedSeenFiles) |
protected void | loadFromCache(String encoding) |
void | registerDefaultFontPath()
Register os-specific font paths to the PDF-FontFactory. |
void | registerFontFile(String filename, String encoding)
Register the font (must end this *.ttf) to the FontFactory.
|
void | registerFontFile(File file, String encoding) |
void | registerFontPath(File file, String encoding)
Register all fonts (*.ttf files) in the given path.
|
protected String | safeSystemGetProperty(String name, String defaultValue) |
protected void | storeToCache(String encoding) |
Parameters: font the font file name. encoding the encoding.
Throws: java.io.IOException if the base font file could not be read.
Parameters: filename the filename. encoding the encoding.
Parameters: file the directory that contains the font files. encoding the encoding for the given font.