Package com.adobe.xfa.font
Class FontInstance
java.lang.Object
com.adobe.xfa.font.FontInstance
- All Implemented Interfaces:
Comparable<FontInstance>
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(FontInstance other) boolean
float
getCharWidth
(int c, boolean useHorizontalGlyphs) double
getDoubleCharWidth
(int c, boolean useHorizontalGlyphs) int
getGlyphID
(int c) boolean
getGlyphID
(int c, int g, boolean h) float
getGlyphWidth
(int glyphID, boolean useHorizontalGlyphs) double
boolean
getSize()
double
int
int
hashCode()
void
mapGlyph
(int c, int glyphID) static boolean
match
(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:
compareTo
in interfaceComparable<FontInstance>
-