org.pentaho.reporting.libraries.fonts.awt

Class AWTFontRegistry

public class AWTFontRegistry extends Object implements FontRegistry

A very simple font registry wrapping around the AWT font classes.

Author: Thomas Morgner

Constructor Summary
AWTFontRegistry()
Method Summary
FontMetricsFactorycreateMetricsFactory()
Creates a new font metrics factory.
String[]getAllRegisteredFamilies()
FontFamilygetFontFamily(String name)
String[]getRegisteredFamilies()
FontCachegetSecondLevelCache()
voidinitialize()
protected static FontCacheinternalGetSecondLevelCache()

Constructor Detail

AWTFontRegistry

public AWTFontRegistry()

Method Detail

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:

getAllRegisteredFamilies

public String[] getAllRegisteredFamilies()

getFontFamily

public FontFamily getFontFamily(String name)

getRegisteredFamilies

public String[] getRegisteredFamilies()

getSecondLevelCache

public FontCache getSecondLevelCache()

initialize

public void initialize()

internalGetSecondLevelCache

protected static FontCache internalGetSecondLevelCache()