org.pentaho.reporting.libraries.fonts.itext
Class ITextFontRegistry

java.lang.Object
  extended by org.pentaho.reporting.libraries.fonts.merge.CompoundFontRegistry
      extended by org.pentaho.reporting.libraries.fonts.itext.ITextFontRegistry
All Implemented Interfaces:
FontRegistry

public class ITextFontRegistry
extends CompoundFontRegistry

This class provides access to the iText font system. The IText registry does not actually use iText to register the fonts (as iText does not provide all information we need for that task).

Author:
Thomas Morgner

Constructor Summary
ITextFontRegistry()
           
 
Method Summary
 FontMetricsFactory createMetricsFactory()
          Creates a new font metrics factory.
 FontCache getSecondLevelCache()
           
 
Methods inherited from class org.pentaho.reporting.libraries.fonts.merge.CompoundFontRegistry
addRegistry, getAllRegisteredFamilies, getFontFamily, getRegisteredFamilies, initialize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ITextFontRegistry

public ITextFontRegistry()
Method Detail

getSecondLevelCache

public FontCache getSecondLevelCache()
Specified by:
getSecondLevelCache in interface FontRegistry
Overrides:
getSecondLevelCache in class CompoundFontRegistry

createMetricsFactory

public FontMetricsFactory createMetricsFactory()
Description copied from interface: FontRegistry
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.

Specified by:
createMetricsFactory in interface FontRegistry
Overrides:
createMetricsFactory in class CompoundFontRegistry
Returns: