Class AbstractFontFileRegistry
java.lang.Object
org.pentaho.reporting.libraries.fonts.registry.AbstractFontFileRegistry
- All Implemented Interfaces:
FontRegistry
- Direct Known Subclasses:
AfmFontRegistry, PfmFontRegistry, TrueTypeFontRegistry
Creation-Date: 21.07.2007, 17:01:15
- Author:
- Thomas Morgner
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Register os-specific font paths to the PDF-FontFactory.void
registerFontFile
(File file, String encoding) void
registerFontFile
(String filename, String encoding) Register the font (must end this *.ttf) to the FontFactory.void
registerFontPath
(File file, String encoding) Register all fonts (*.ttf files) in the given path.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface FontRegistry
createMetricsFactory, getAllRegisteredFamilies, getFontFamily, getRegisteredFamilies, getSecondLevelCache
-
Method Details
-
initialize
public void initialize()- Specified by:
initialize
in 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
-
registerFontFile
-
registerFontFile
-