Class TrueTypeFontIdentifier
- java.lang.Object
-
- org.pentaho.reporting.libraries.fonts.truetype.TrueTypeFontIdentifier
-
- All Implemented Interfaces:
java.io.Serializable,FontIdentifier
public class TrueTypeFontIdentifier extends java.lang.Object implements FontIdentifier, java.io.Serializable
Creation-Date: 16.12.2005, 19:35:31- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TrueTypeFontIdentifier(java.lang.String fontSource, java.lang.String fontName, java.lang.String fontVariant, int collectionIndex, long offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)intgetCollectionIndex()java.lang.StringgetFontName()java.lang.StringgetFontSource()FontTypegetFontType()Returns the general type of this font identifier.java.lang.StringgetFontVariant()longgetOffset()inthashCode()booleanisScalable()Defines, whether the font identifier represents a scalable font type.
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equalsin interfaceFontIdentifier- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceFontIdentifier- Overrides:
hashCodein classjava.lang.Object
-
getFontSource
public java.lang.String getFontSource()
-
getFontVariant
public java.lang.String getFontVariant()
-
getFontName
public java.lang.String getFontName()
-
getCollectionIndex
public int getCollectionIndex()
-
getOffset
public long getOffset()
-
isScalable
public 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.- Specified by:
isScalablein interfaceFontIdentifier- Returns:
- true, if the font is scalable, false otherwise
-
getFontType
public FontType getFontType()
Description copied from interface:FontIdentifierReturns the general type of this font identifier. This is for debugging, not for the real world.- Specified by:
getFontTypein interfaceFontIdentifier- Returns:
-
-