org.apache.batik.gvt.font
public class FontFamilyResolver extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.util.List |
awtFontFamilies |
protected static java.util.List |
awtFonts |
static AWTFontFamily |
defaultFont
The default font.
|
protected static java.util.Map |
fonts
List of all available fonts on the current system, plus a few common
alternatives.
|
protected static java.util.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 java.lang.String |
lookup(java.lang.String familyName)
Looks up a font family name and returns the platform name
for the font.
|
static GVTFontFamily |
resolve(java.lang.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 java.util.Map fonts
protected static final java.util.List awtFontFamilies
protected static final java.util.List awtFonts
protected static final java.util.Map resolvedFontFamilies
public static java.lang.String lookup(java.lang.String familyName)
familyName
- The Font Family name to resolvepublic static GVTFontFamily resolve(java.lang.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 ? 2008 Apache Software Foundation. All Rights Reserved.