org.pentaho.reporting.libraries.fonts.truetype

Class TrueTypeFontRegistry

public class TrueTypeFontRegistry extends AbstractFontFileRegistry

Creation-Date: 07.11.2005, 19:05:46

Author: Thomas Morgner

Constructor Summary
TrueTypeFontRegistry()
Method Summary
protected booleanaddFont(File file, String encoding)
FontMetricsFactorycreateMetricsFactory()
Creates a new font metrics factory.
String[]getAllRegisteredFamilies()
protected FileFiltergetFileFilter()
FontFamilygetFontFamily(String name)
String[]getRegisteredFamilies()
FontCachegetSecondLevelCache()
protected static FontCacheinternalGetSecondLevelCache()
protected voidloadFromCache(String encoding)
protected voidstoreToCache(String encoding)

Constructor Detail

TrueTypeFontRegistry

public TrueTypeFontRegistry()

Method Detail

addFont

protected boolean addFont(File file, String encoding)

createMetricsFactory

public FontMetricsFactory createMetricsFactory()
Creates a new font metrics factory. That factory is specific to a certain font registry and is not required to handle font records from foreign font registries.

A font metrics factory should never be used on its own. It should be embedded into and used by a FontStorage implementation.

Returns: a new FontMetricsFactory instance

getAllRegisteredFamilies

public String[] getAllRegisteredFamilies()

getFileFilter

protected FileFilter getFileFilter()

getFontFamily

public FontFamily getFontFamily(String name)

getRegisteredFamilies

public String[] getRegisteredFamilies()

getSecondLevelCache

public FontCache getSecondLevelCache()

internalGetSecondLevelCache

protected static FontCache internalGetSecondLevelCache()

loadFromCache

protected void loadFromCache(String encoding)

storeToCache

protected void storeToCache(String encoding)