public class FontFamilyResolver extends Object
Modifier and Type | Field and Description |
---|---|
protected static List |
awtFontFamilies |
protected static List |
awtFonts |
static AWTFontFamily |
defaultFont
The default font.
|
protected static Map |
fonts
List of all available fonts on the current system, plus a few common
alternatives.
|
protected static Map |
resolvedFontFamilies
This keeps track of all the resolved font families.
|
Constructor and Description |
---|
FontFamilyResolver() |
Modifier and Type | Method and Description |
---|---|
static GVTFontFamily |
getFamilyThatCanDisplay(char c) |
static String |
lookup(String familyName)
Looks up a font family name and returns the platform name
for the font.
|
static GVTFontFamily |
resolve(String familyName)
Resolves a font family name into a GVTFontFamily.
|
static GVTFontFamily |
resolve(UnresolvedFontFamily fontFamily)
Resolves an UnresolvedFontFamily into a GVTFontFamily.
|
public static final AWTFontFamily defaultFont
protected static final Map fonts
protected static final List awtFontFamilies
protected static final List awtFonts
protected static final Map resolvedFontFamilies
public static String lookup(String familyName)
familyName
- The Font Family name to resolvepublic static GVTFontFamily resolve(String familyName)
familyName
- The Font Family name to resolvepublic static GVTFontFamily resolve(UnresolvedFontFamily fontFamily)
fontFamily
- The UnresolvedFontFamily to resolvepublic static GVTFontFamily getFamilyThatCanDisplay(char c)
Copyright ? 2009 Apache Software Foundation. All Rights Reserved.