Package com.adobe.xfa.font
Class FontItem
- java.lang.Object
-
- com.adobe.xfa.font.FontInfo
-
- com.adobe.xfa.font.FontItem
-
-
Field Summary
-
Fields inherited from class com.adobe.xfa.font.FontInfo
STYLE_ITALIC, STYLE_UNKNOWN, STYLE_UPRIGHT, WEIGHT_BOLD, WEIGHT_NORMAL, WEIGHT_UNKNOWN
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSubsettedGlyphs(int glyph, int chr)
static double
ctLegacyScale(double emScale, double advance)
boolean
equals(java.lang.Object object)
Font
getAFEFont()
double
getAscent()
double
getCharWidth(int c, boolean useHorizontalGlyphs)
double
getDescent()
int
getGlyphID(int c)
double
getGlyphWidth(int glyphID, boolean useHorizontalGlyphs)
double
getLegacyAscent()
double
getLegacyLineGap()
double
getLineGap()
int
getNotDefGlyphID()
double
getSpacing()
FontItem
getUnicodeFont()
int
hashCode()
boolean
isPWIDApplied()
void
mapGlyph(int c, int glyphID)
static boolean
match(FontItem o1, FontItem o2)
FontInstance
reconcile(UnitSpan size)
FontInstance
reconcile(UnitSpan size, double horizontalScale, double verticalScale)
boolean
validateChar(int c, boolean useHorizontalGlyphs)
-
Methods inherited from class com.adobe.xfa.font.FontInfo
compareTo, createFromAFEDescription, getItalic, getLegacySizeDiff, getStretchDiff, getTypeface, getWeight, match, toString
-
-
-
-
Method Detail
-
ctLegacyScale
public static double ctLegacyScale(double emScale, double advance)
-
getAFEFont
public Font getAFEFont()
-
getAscent
public double getAscent()
-
getLegacyAscent
public double getLegacyAscent()
-
getDescent
public double getDescent()
-
getLineGap
public double getLineGap()
-
getLegacyLineGap
public double getLegacyLineGap()
-
getSpacing
public double getSpacing()
-
getCharWidth
public double getCharWidth(int c, boolean useHorizontalGlyphs)
-
getNotDefGlyphID
public int getNotDefGlyphID()
-
getGlyphID
public int getGlyphID(int c)
-
getGlyphWidth
public double getGlyphWidth(int glyphID, boolean useHorizontalGlyphs)
-
validateChar
public boolean validateChar(int c, boolean useHorizontalGlyphs)
-
reconcile
public FontInstance reconcile(UnitSpan size)
-
reconcile
public FontInstance reconcile(UnitSpan size, double horizontalScale, double verticalScale)
-
addSubsettedGlyphs
public void addSubsettedGlyphs(int glyph, int chr)
-
getUnicodeFont
public FontItem getUnicodeFont()
-
isPWIDApplied
public boolean isPWIDApplied()
-
mapGlyph
public void mapGlyph(int c, int glyphID)
-
-