org.pentaho.reporting.libraries.fonts.registry
Interface FontIdentifier

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
AfmFontRecord, AWTFontRecord, CompoundFontIdentifier, ITextBuiltInFontRecord, ITextFontRecord, MonospaceFontRecord, PfmFontRecord, TrueTypeFontIdentifier

public interface FontIdentifier
extends java.io.Serializable

A font identifier is a general handle to map Font-Metrics for a given font. The same font identifier may be used by several fonts, if the fonts share the same metrics (this is commonly true for TrueType fonts).

Author:
Thomas Morgner

Method Summary
 boolean equals(java.lang.Object o)
           
 FontType getFontType()
          Returns the general type of this font identifier.
 int hashCode()
           
 boolean isScalable()
          Defines, whether the font identifier represents a scalable font type.
 

Method Detail

equals

boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

int hashCode()
Overrides:
hashCode in class java.lang.Object

isScalable

boolean isScalable()
Defines, whether the font identifier represents a scalable font type. Such fonts usually create one font metric object for each physical font, and apply the font size afterwards.

Returns:
true, if the font is scalable, false otherwise

getFontType

FontType getFontType()
Returns the general type of this font identifier. This is for debugging, not for the real world.

Returns: