public class AWTFontRecord extends Object implements FontRecord, FontIdentifier
Constructor and Description |
---|
AWTFontRecord(FontFamily fontFamily,
boolean bold,
boolean italics) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
FontFamily |
getFamily()
Returns the family for this record.
|
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 |
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 AWTFontRecord(FontFamily fontFamily, boolean bold, boolean italics)
public FontFamily getFamily()
getFamily
in interface FontRecord
public boolean isBold()
isBold
in interface FontRecord
public boolean isItalic()
isItalic
in interface FontRecord
public boolean isOblique()
isOblique
in interface FontRecord
public FontIdentifier getIdentifier()
getIdentifier
in interface FontRecord
public boolean isScalable()
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
Copyright © 2019 Hitachi Vantara. All rights reserved.