public class TrueTypeFontRecord extends Object implements FontSource
Constructor and Description |
---|
TrueTypeFontRecord(TrueTypeFont trueTypeFont,
FontFamily family) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getCollectionIndex() |
FontFamily |
getFamily()
Returns the family for this record.
|
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.
|
public TrueTypeFontRecord(TrueTypeFont trueTypeFont, FontFamily family) throws IOException, FontException
IOException
FontException
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 String getFontSource()
FontSource
getFontSource
in interface FontSource
public int getCollectionIndex()
public FontIdentifier getIdentifier()
getIdentifier
in interface FontRecord
public boolean isNonWindows()
Copyright © 2018 Hitachi Vantara. All rights reserved.