Class FXGFontDescription
java.lang.Object
com.adobe.fontengine.font.FontDescription
com.adobe.fontengine.fontmanagement.fxg.FXGFontDescription
- All Implemented Interfaces:
Serializable
An FXG description of a font. This description can be used for looking up fonts.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFXGFontDescription(Platform platform, ULocale locale, String familyName, boolean isBold, boolean isItalic) Constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the font family name used for FXG.Get the locale that this description is for.Get the platform that this description is for.inthashCode()booleanisBold()Tests whether the font is bold in FXG terms.booleanisItalic()Tests whether the font is italic in FXG terms.toString()
-
Constructor Details
-
FXGFontDescription
public FXGFontDescription(Platform platform, ULocale locale, String familyName, boolean isBold, boolean isItalic) Constructor- Parameters:
platform- the platform that this description is forfamilyName- the FXG font family nameisBold-trueif the font is bold;falseotherwiseisItalic-trueif the font is italic;falseotherwise
-
-
Method Details
-
getPlatform
Get the platform that this description is for.- Returns:
- the platform that this description is for
-
getLocale
Get the locale that this description is for.- Returns:
- the locale that this description is for
-
getFamilyName
Get the font family name used for FXG.- Returns:
- the font family name
-
isBold
public boolean isBold()Tests whether the font is bold in FXG terms.- Returns:
trueif the font is bold;falseotherwise
-
isItalic
public boolean isItalic()Tests whether the font is italic in FXG terms.- Returns:
trueif the font is italic;falseotherwise
-
hashCode
public int hashCode() -
equals
-
toString
-