public class AfmFontRecord extends Object implements FontSource, FontIdentifier
Constructor and Description |
---|
AfmFontRecord(AfmFont font,
DefaultFontFamily fontFamily) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
FontFamily |
getFamily()
Returns the family for this record.
|
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()
FontRecord
getFamily
in interface FontRecord
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 FontIdentifier getIdentifier()
getIdentifier
in interface FontRecord
public String getFontSource()
FontSource
getFontSource
in interface FontSource
public boolean isEmbeddable()
isEmbeddable
in interface FontSource
public boolean isScalable()
FontIdentifier
isScalable
in interface FontIdentifier
public FontType getFontType()
FontIdentifier
getFontType
in interface FontIdentifier
public boolean equals(Object o)
equals
in interface FontIdentifier
equals
in class Object
public int hashCode()
hashCode
in interface FontIdentifier
hashCode
in class Object