|
||||||||||
| 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 FontRecordpublic boolean isEmbeddable()
isEmbeddable in interface FontSourcepublic boolean isBold()
FontRecord
isBold in interface FontRecordpublic boolean isItalic()
FontRecord
isItalic in interface FontRecordpublic boolean isOblique()
FontRecord
isOblique in interface FontRecordpublic java.lang.String getFontSource()
FontSource
getFontSource in interface FontSourcepublic int getCollectionIndex()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic FontIdentifier getIdentifier()
getIdentifier in interface FontRecordpublic 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 | |||||||||