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 int
compareTo(FontInstance other)
boolean
equals(java.lang.Object object)
Font
getAFEFont()
UnitSpan
getAscent()
float
getCharWidth(int c, boolean useHorizontalGlyphs)
UnitSpan
getDescent()
double
getDoubleCharWidth(int c, boolean useHorizontalGlyphs)
FontItem
getFontItem()
int
getGlyphID(int c)
boolean
getGlyphID(int c, int g, boolean h)
float
getGlyphWidth(int glyphID, boolean useHorizontalGlyphs)
double
getHorizontalScale()
boolean
getItalic()
UnitSpan
getLegacyAscent()
UnitSpan
getLegacyLineGap()
UnitSpan
getLineGap()
UnitSpan
getSize()
UnitSpan
getspacing()
java.lang.String
getTypeface()
double
getVerticalScale()
int
getWeight()
int
hashCode()
void
mapGlyph(int c, int glyphID)
static boolean
match(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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
match
public static boolean match(FontInstance o1, FontInstance o2)
-
compareTo
public int compareTo(FontInstance other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<FontInstance>
-
-