|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.libraries.fonts.truetype.TrueTypeFontRecord
public class TrueTypeFontRecord
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.
Constructor Summary | |
---|---|
TrueTypeFontRecord(TrueTypeFont trueTypeFont,
FontFamily family)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
int |
getCollectionIndex()
|
FontFamily |
getFamily()
Returns the family for this record. |
java.lang.String |
getFontSource()
Returns the file name used to load the font. |
FontIdentifier |
getIdentifier()
This identifies the font resource assigned to this record. |
long |
getOffset()
|
int |
hashCode()
|
boolean |
isBold()
Returns true, if this font corresponds to a bold version of the font. |
boolean |
isEmbeddable()
|
boolean |
isItalic()
Returns true, if this font includes italic glyphs. |
boolean |
isNonWindows()
|
boolean |
isOblique()
Returns tue, if this font's italic mode is in fact some sort of being oblique. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TrueTypeFontRecord(TrueTypeFont trueTypeFont, FontFamily family) throws java.io.IOException, FontException
java.io.IOException
FontException
Method Detail |
---|
public long getOffset()
public FontFamily getFamily()
FontRecord
getFamily
in interface FontRecord
public boolean isEmbeddable()
isEmbeddable
in interface FontSource
public boolean isBold()
FontRecord
isBold
in interface FontRecord
public boolean isItalic()
FontRecord
isItalic
in interface FontRecord
public boolean isOblique()
FontRecord
isOblique
in interface FontRecord
public java.lang.String getFontSource()
FontSource
getFontSource
in interface FontSource
public int getCollectionIndex()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public FontIdentifier getIdentifier()
getIdentifier
in interface FontRecord
public boolean isNonWindows()
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |