phelps.awt
public class Fonts extends Object
Version: $Revision$ $Date$
Field Summary | |
---|---|
static String[] | FAMILIES Shared, one-time result of java.awt.GraphicsEnvironment#getAvailableFontFamilyNames(). |
static int | FLAG_ALLCAP Font flags in font dictionary. |
static int | FLAG_DEFAULT Font flags in font dictionary. |
static int | FLAG_FIXEDPITCH Font flags in font dictionary. |
static int | FLAG_FORCEBOLD Font flags in font dictionary. |
static int | FLAG_ITALIC Font flags in font dictionary. |
static int | FLAG_NOFLAG Font flags in font dictionary. |
static int | FLAG_NONSYMBOLIC Font flags in font dictionary. |
static int | FLAG_SCRIPT Font flags in font dictionary. |
static int | FLAG_SERIF Font flags in font dictionary. |
static int | FLAG_SMALLCAP Font flags in font dictionary. |
static int | FLAG_SYMBOLIC Font flags in font dictionary. |
static String[] | NORMALFAMILIES FAMILIES, normalized to lowercase and no spaces. |
Method Summary | |
---|---|
static Font | createFont(String family, String altfamily, float size, int flags)
A more flexible version of Font#Font(String, int, int) that tries harder to find a good substitute.
|
static String | getNormalFamily(String family)
Given a family name, return closest existing name.
|
Sequence to choose font:
Returns: Font (never null
) that best matches desired attributes.