Package com.adobe.xfa.font
Class FontInstance
- java.lang.Object
-
- com.adobe.xfa.font.FontInstance
-
- All Implemented Interfaces:
java.lang.Comparable<FontInstance>
public class FontInstance extends java.lang.Object implements java.lang.Comparable<FontInstance>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(FontInstance other)booleanequals(java.lang.Object object)FontgetAFEFont()UnitSpangetAscent()floatgetCharWidth(int c, boolean useHorizontalGlyphs)UnitSpangetDescent()doublegetDoubleCharWidth(int c, boolean useHorizontalGlyphs)FontItemgetFontItem()intgetGlyphID(int c)booleangetGlyphID(int c, int g, boolean h)floatgetGlyphWidth(int glyphID, boolean useHorizontalGlyphs)doublegetHorizontalScale()booleangetItalic()UnitSpangetLegacyAscent()UnitSpangetLegacyLineGap()UnitSpangetLineGap()UnitSpangetSize()UnitSpangetspacing()java.lang.StringgetTypeface()doublegetVerticalScale()intgetWeight()inthashCode()voidmapGlyph(int c, int glyphID)static booleanmatch(FontInstance o1, FontInstance o2)
-
-
-
Method Detail
-
getFontItem
public FontItem getFontItem()
-
getAFEFont
public Font getAFEFont()
-
getTypeface
public java.lang.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(java.lang.Object object)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
match
public static boolean match(FontInstance o1, FontInstance o2)
-
compareTo
public int compareTo(FontInstance other)
- Specified by:
compareToin interfacejava.lang.Comparable<FontInstance>
-
-