Package com.adobe.xfa.font
Class FontInfo
- java.lang.Object
-
- com.adobe.xfa.font.FontInfo
-
-
Field Summary
Fields Modifier and Type Field Description static int
STYLE_ITALIC
static int
STYLE_UNKNOWN
static int
STYLE_UPRIGHT
static int
WEIGHT_BOLD
static int
WEIGHT_NORMAL
static int
WEIGHT_UNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(FontInfo other)
static FontInfo
createFromAFEDescription(CSS20FontDescription desc)
boolean
equals(java.lang.Object object)
boolean
getItalic()
double
getLegacySizeDiff()
int
getStretchDiff()
java.lang.String
getTypeface()
int
getWeight()
int
hashCode()
static boolean
match(FontInfo o1, FontInfo o2)
java.lang.String
toString()
-
-
-
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:
equals
in classjava.lang.Object
-
createFromAFEDescription
public static FontInfo createFromAFEDescription(CSS20FontDescription desc)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-