public class AfmFontRecord extends java.lang.Object implements FontSource, FontIdentifier
| Constructor and Description |
|---|
AfmFontRecord(AfmFont font,
DefaultFontFamily fontFamily) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
FontFamily |
getFamily()
Returns the family for this record.
|
java.lang.String |
getFontSource()
Returns the file name used to load the font.
|
FontType |
getFontType()
Returns the general type of this font identifier.
|
FontIdentifier |
getIdentifier() |
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 |
isOblique()
Returns tue, if this font's italic mode is in fact some sort of being oblique.
|
boolean |
isScalable()
Defines, whether the font identifier represents a scalable font type.
|
public AfmFontRecord(AfmFont font, DefaultFontFamily fontFamily)
public FontFamily getFamily()
FontRecordgetFamily in interface FontRecordpublic boolean isBold()
FontRecordisBold in interface FontRecordpublic boolean isItalic()
FontRecordisItalic in interface FontRecordpublic boolean isOblique()
FontRecordisOblique in interface FontRecordpublic FontIdentifier getIdentifier()
getIdentifier in interface FontRecordpublic java.lang.String getFontSource()
FontSourcegetFontSource in interface FontSourcepublic boolean isEmbeddable()
isEmbeddable in interface FontSourcepublic boolean isScalable()
FontIdentifierisScalable in interface FontIdentifierpublic FontType getFontType()
FontIdentifiergetFontType in interface FontIdentifierpublic boolean equals(java.lang.Object o)
equals in interface FontIdentifierequals in class java.lang.Objectpublic int hashCode()
hashCode in interface FontIdentifierhashCode in class java.lang.Object