Class FontInstance

java.lang.Object
com.adobe.xfa.font.FontInstance
All Implemented Interfaces:
Comparable<FontInstance>

public class FontInstance extends Object implements Comparable<FontInstance>
  • Method Details

    • getFontItem

      public FontItem getFontItem()
    • getAFEFont

      public Font getAFEFont()
    • getTypeface

      public String getTypeface()
    • getWeight

      public int getWeight()
    • getItalic

      public boolean getItalic()
    • getSize

      public UnitSpan getSize()
    • getHorizontalScale

      public double getHorizontalScale()
    • getVerticalScale

      public double getVerticalScale()
    • getAscent

      public UnitSpan getAscent()
    • getLegacyAscent

      public UnitSpan getLegacyAscent()
    • getDescent

      public UnitSpan getDescent()
    • getLineGap

      public UnitSpan getLineGap()
    • getLegacyLineGap

      public UnitSpan getLegacyLineGap()
    • getspacing

      public UnitSpan getspacing()
    • getCharWidth

      public float getCharWidth(int c, boolean useHorizontalGlyphs)
    • getDoubleCharWidth

      public double getDoubleCharWidth(int c, boolean useHorizontalGlyphs)
    • getGlyphWidth

      public float getGlyphWidth(int glyphID, boolean useHorizontalGlyphs)
    • getGlyphID

      public int getGlyphID(int c)
    • getGlyphID

      public boolean getGlyphID(int c, int g, boolean h)
    • mapGlyph

      public void mapGlyph(int c, int glyphID)
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

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

      public static boolean match(FontInstance o1, FontInstance o2)
    • compareTo

      public int compareTo(FontInstance other)
      Specified by:
      compareTo in interface Comparable<FontInstance>