public class FontInfo extends Object implements Comparable<FontInfo>
| Modifier and Type | Field and 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 |
| Constructor and Description |
|---|
FontInfo() |
FontInfo(FontInfo source) |
FontInfo(String typeface,
int weight,
boolean italic) |
FontInfo(String typeface,
int weight,
boolean italic,
double legacySizeDiff,
int stretchDiff) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(FontInfo other) |
static FontInfo |
createFromAFEDescription(CSS20FontDescription desc) |
boolean |
equals(Object object) |
boolean |
getItalic() |
double |
getLegacySizeDiff() |
int |
getStretchDiff() |
String |
getTypeface() |
int |
getWeight() |
int |
hashCode() |
static boolean |
match(FontInfo o1,
FontInfo o2) |
String |
toString() |
public static final int WEIGHT_UNKNOWN
public static final int WEIGHT_NORMAL
public static final int WEIGHT_BOLD
public static final int STYLE_UNKNOWN
public static final int STYLE_UPRIGHT
public static final int STYLE_ITALIC
public FontInfo()
public FontInfo(FontInfo source)
public FontInfo(String typeface, int weight, boolean italic)
public FontInfo(String typeface, int weight, boolean italic, double legacySizeDiff, int stretchDiff)
public String getTypeface()
public int getWeight()
public boolean getItalic()
public double getLegacySizeDiff()
public int getStretchDiff()
public static FontInfo createFromAFEDescription(CSS20FontDescription desc)
public int compareTo(FontInfo other)
compareTo in interface Comparable<FontInfo>Copyright © 2010 - 2020 Adobe. All Rights Reserved