Class AbstractFontFileRegistry
- java.lang.Object
-
- org.pentaho.reporting.libraries.fonts.registry.AbstractFontFileRegistry
-
- All Implemented Interfaces:
FontRegistry
- Direct Known Subclasses:
AfmFontRegistry,PfmFontRegistry,TrueTypeFontRegistry
public abstract class AbstractFontFileRegistry extends java.lang.Object implements FontRegistry
Creation-Date: 21.07.2007, 17:01:15- Author:
- Thomas Morgner
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize()voidregisterDefaultFontPath()Register os-specific font paths to the PDF-FontFactory.voidregisterFontFile(java.io.File file, java.lang.String encoding)voidregisterFontFile(java.lang.String filename, java.lang.String encoding)Register the font (must end this *.ttf) to the FontFactory.voidregisterFontPath(java.io.File file, java.lang.String encoding)Register all fonts (*.ttf files) in the given path.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pentaho.reporting.libraries.fonts.registry.FontRegistry
createMetricsFactory, getAllRegisteredFamilies, getFontFamily, getRegisteredFamilies, getSecondLevelCache
-
-
-
-
Method Detail
-
initialize
public void initialize()
- Specified by:
initializein interfaceFontRegistry
-
registerDefaultFontPath
public void registerDefaultFontPath()
Register os-specific font paths to the PDF-FontFactory. For unix-like operating systems, X11 is searched in /usr/X11R6 and the default truetype fontpath is added. For windows the system font path is added (%windir%/fonts)
-
registerFontPath
public void registerFontPath(java.io.File file, java.lang.String encoding)Register all fonts (*.ttf files) in the given path.- Parameters:
file- the directory that contains the font files.encoding- the encoding for the given font.
-
registerFontFile
public void registerFontFile(java.lang.String filename, java.lang.String encoding)Register the font (must end this *.ttf) to the FontFactory.- Parameters:
filename- the filename.encoding- the encoding.
-
registerFontFile
public void registerFontFile(java.io.File file, java.lang.String encoding)
-
-