Package com.adobe.xfa.font
Class FontInfo
- java.lang.Object
-
- com.adobe.xfa.font.FontInfo
-
-
Field Summary
Fields Modifier and Type Field Description static intSTYLE_ITALICstatic intSTYLE_UNKNOWNstatic intSTYLE_UPRIGHTstatic intWEIGHT_BOLDstatic intWEIGHT_NORMALstatic intWEIGHT_UNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(FontInfo other)static FontInfocreateFromAFEDescription(CSS20FontDescription desc)booleanequals(java.lang.Object object)booleangetItalic()doublegetLegacySizeDiff()intgetStretchDiff()java.lang.StringgetTypeface()intgetWeight()inthashCode()static booleanmatch(FontInfo o1, FontInfo o2)java.lang.StringtoString()
-
-
-
Field Detail
-
WEIGHT_UNKNOWN
public static final int WEIGHT_UNKNOWN
- See Also:
- Constant Field Values
-
WEIGHT_NORMAL
public static final int WEIGHT_NORMAL
- See Also:
- Constant Field Values
-
WEIGHT_BOLD
public static final int WEIGHT_BOLD
- See Also:
- Constant Field Values
-
STYLE_UNKNOWN
public static final int STYLE_UNKNOWN
- See Also:
- Constant Field Values
-
STYLE_UPRIGHT
public static final int STYLE_UPRIGHT
- See Also:
- Constant Field Values
-
STYLE_ITALIC
public static final int STYLE_ITALIC
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FontInfo
public FontInfo()
-
FontInfo
public FontInfo(FontInfo source)
-
FontInfo
public FontInfo(java.lang.String typeface, int weight, boolean italic)
-
FontInfo
public FontInfo(java.lang.String typeface, int weight, boolean italic, double legacySizeDiff, int stretchDiff)
-
-
Method Detail
-
getTypeface
public java.lang.String getTypeface()
-
getWeight
public int getWeight()
-
getItalic
public boolean getItalic()
-
getLegacySizeDiff
public double getLegacySizeDiff()
-
getStretchDiff
public int getStretchDiff()
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classjava.lang.Object
-
createFromAFEDescription
public static FontInfo createFromAFEDescription(CSS20FontDescription desc)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-