org.pentaho.reporting.libraries.fonts.awt

Class AWTFontRecord

public class AWTFontRecord extends Object implements FontRecord, FontIdentifier

Creation-Date: 16.12.2005, 20:06:51

Author: Thomas Morgner

Constructor Summary
AWTFontRecord(FontFamily fontFamily, boolean bold, boolean italics)
Method Summary
booleanequals(Object o)
FontFamilygetFamily()
Returns the family for this record.
FontTypegetFontType()
FontIdentifiergetIdentifier()
inthashCode()
booleanisBold()
Returns true, if this font corresponds to a bold version of the font.
booleanisItalic()
Returns true, if this font includes italic glyphs.
booleanisOblique()
Returns tue, if this font's italic mode is in fact some sort of being oblique.
booleanisScalable()
Defines, whether the font identifier represents a scalable font type.

Constructor Detail

AWTFontRecord

public AWTFontRecord(FontFamily fontFamily, boolean bold, boolean italics)

Method Detail

equals

public boolean equals(Object o)

getFamily

public FontFamily getFamily()
Returns the family for this record.

Returns: the font family.

getFontType

public FontType getFontType()

getIdentifier

public FontIdentifier getIdentifier()

hashCode

public int hashCode()

isBold

public boolean isBold()
Returns true, if this font corresponds to a bold version of the font. A font that does not provide a bold face must emulate the boldness using other means.

Returns: true, if the font provides bold glyphs, false otherwise.

isItalic

public boolean isItalic()
Returns true, if this font includes italic glyphs. Italics is different from oblique, as certain glyphs (most notably the lowercase 'f') will have a different appearance, making the font look more like a script font.

Returns: true, if the font is italic.

isOblique

public boolean isOblique()
Returns tue, if this font's italic mode is in fact some sort of being oblique. An oblique font's glyphs are sheared, but they are not made to look more script like.

Returns: true, if the font is oblique.

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.

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