org.pentaho.reporting.libraries.fonts.truetype

Class TrueTypeFontRecord

public class TrueTypeFontRecord extends Object implements FontSource

A true-type font record. The record contains meta-information about the font, which allows the system to lookup the font by one of its names and other style attributes.

A font without a 'name' table is rejected. The Name-Table is a mandatory table in the OpenType standard, and only weird MacOS fonts omit that table.

Missing 'head' or 'OS/2' tables are ignored and default values are assumed instead.

Author: Thomas Morgner

Constructor Summary
TrueTypeFontRecord(TrueTypeFont trueTypeFont, FontFamily family)
Method Summary
booleanequals(Object o)
intgetCollectionIndex()
FontFamilygetFamily()
StringgetFontSource()
FontIdentifiergetIdentifier()
This identifies the font resource assigned to this record.
longgetOffset()
inthashCode()
booleanisBold()
booleanisEmbeddable()
booleanisItalic()
booleanisNonWindows()
booleanisOblique()

Constructor Detail

TrueTypeFontRecord

public TrueTypeFontRecord(TrueTypeFont trueTypeFont, FontFamily family)

Method Detail

equals

public boolean equals(Object o)

getCollectionIndex

public int getCollectionIndex()

getFamily

public FontFamily getFamily()

getFontSource

public String getFontSource()

getIdentifier

public FontIdentifier getIdentifier()
This identifies the font resource assigned to this record.

Returns:

getOffset

public long getOffset()

hashCode

public int hashCode()

isBold

public boolean isBold()

isEmbeddable

public boolean isEmbeddable()

isItalic

public boolean isItalic()

isNonWindows

public boolean isNonWindows()

isOblique

public boolean isOblique()