Class FXGFontDescription

java.lang.Object
com.adobe.fontengine.font.FontDescription
com.adobe.fontengine.fontmanagement.fxg.FXGFontDescription
All Implemented Interfaces:
Serializable

public final class FXGFontDescription extends FontDescription
An FXG description of a font. This description can be used for looking up fonts.
See Also:
  • Constructor Details

    • FXGFontDescription

      public FXGFontDescription(Platform platform, ULocale locale, String familyName, boolean isBold, boolean isItalic)
      Constructor
      Parameters:
      platform - the platform that this description is for
      familyName - the FXG font family name
      isBold - true if the font is bold; false otherwise
      isItalic - true if the font is italic; false otherwise
  • Method Details

    • getPlatform

      public Platform getPlatform()
      Get the platform that this description is for.
      Returns:
      the platform that this description is for
    • getLocale

      public ULocale getLocale()
      Get the locale that this description is for.
      Returns:
      the locale that this description is for
    • getFamilyName

      public String 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:
      true if the font is bold; false otherwise
    • isItalic

      public boolean isItalic()
      Tests whether the font is italic in FXG terms.
      Returns:
      true if the font is italic; false otherwise
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object