Package com.adobe.xfa.font
Class FontInfo
- java.lang.Object
-
- com.adobe.xfa.font.FontInfo
-
- All Implemented Interfaces:
Comparable<FontInfo>
- Direct Known Subclasses:
FontItem
public class FontInfo extends Object implements Comparable<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(Object object)booleangetItalic()doublegetLegacySizeDiff()intgetStretchDiff()StringgetTypeface()intgetWeight()inthashCode()static booleanmatch(FontInfo o1, FontInfo o2)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
-
-
Method Detail
-
getTypeface
public String getTypeface()
-
getWeight
public int getWeight()
-
getItalic
public boolean getItalic()
-
getLegacySizeDiff
public double getLegacySizeDiff()
-
getStretchDiff
public int getStretchDiff()
-
createFromAFEDescription
public static FontInfo createFromAFEDescription(CSS20FontDescription desc)
-
compareTo
public int compareTo(FontInfo other)
- Specified by:
compareToin interfaceComparable<FontInfo>
-
-