Package com.adobe.xfa.font
Class FontInstance
java.lang.Object
com.adobe.xfa.font.FontInstance
- All Implemented Interfaces:
Comparable<FontInstance>
-
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(FontInstance other) booleanfloatgetCharWidth(int c, boolean useHorizontalGlyphs) doublegetDoubleCharWidth(int c, boolean useHorizontalGlyphs) intgetGlyphID(int c) booleangetGlyphID(int c, int g, boolean h) floatgetGlyphWidth(int glyphID, boolean useHorizontalGlyphs) doublebooleangetSize()doubleintinthashCode()voidmapGlyph(int c, int glyphID) static booleanmatch(FontInstance o1, FontInstance o2)
-
Method Details
-
getFontItem
-
getAFEFont
-
getTypeface
-
getWeight
public int getWeight() -
getItalic
public boolean getItalic() -
getSize
-
getHorizontalScale
public double getHorizontalScale() -
getVerticalScale
public double getVerticalScale() -
getAscent
-
getLegacyAscent
-
getDescent
-
getLineGap
-
getLegacyLineGap
-
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
-
hashCode
public int hashCode() -
match
-
compareTo
- Specified by:
compareToin interfaceComparable<FontInstance>
-