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 voidaddSubsettedGlyphs(int glyph, int chr)static doublectLegacyScale(double emScale, double advance)booleanequals(java.lang.Object object)FontgetAFEFont()doublegetAscent()doublegetCharWidth(int c, boolean useHorizontalGlyphs)doublegetDescent()intgetGlyphID(int c)doublegetGlyphWidth(int glyphID, boolean useHorizontalGlyphs)doublegetLegacyAscent()doublegetLegacyLineGap()doublegetLineGap()intgetNotDefGlyphID()doublegetSpacing()FontItemgetUnicodeFont()inthashCode()booleanisPWIDApplied()voidmapGlyph(int c, int glyphID)static booleanmatch(FontItem o1, FontItem o2)FontInstancereconcile(UnitSpan size)FontInstancereconcile(UnitSpan size, double horizontalScale, double verticalScale)booleanvalidateChar(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)
-
-