public final class DefaultFontFamilyResolver extends Object implements FontFamilyResolver
| Modifier and Type | Field and Description |
|---|---|
protected static List |
awtFontFamilies |
protected static List |
awtFonts |
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.
|
static DefaultFontFamilyResolver |
SINGLETON |
| Modifier and Type | Method and Description |
|---|---|
GVTFontFamily |
getDefault() |
GVTFontFamily |
getFamilyThatCanDisplay(char c) |
GVTFontFamily |
loadFont(InputStream in,
FontFace ff) |
GVTFontFamily |
resolve(String familyName)
Resolves a font family name into a GVTFontFamily.
|
AWTFontFamily |
resolve(String familyName,
FontFace fontFace) |
public static final DefaultFontFamilyResolver SINGLETON
protected static final Map fonts
protected static final List awtFontFamilies
protected static final List awtFonts
protected static final Map resolvedFontFamilies
public AWTFontFamily resolve(String familyName, FontFace fontFace)
resolve in interface FontFamilyResolverpublic GVTFontFamily loadFont(InputStream in, FontFace ff) throws Exception
loadFont in interface FontFamilyResolverExceptionpublic GVTFontFamily resolve(String familyName)
resolve in interface FontFamilyResolverfamilyName - The Font Family name to resolvepublic GVTFontFamily getFamilyThatCanDisplay(char c)
getFamilyThatCanDisplay in interface FontFamilyResolverpublic GVTFontFamily getDefault()
getDefault in interface FontFamilyResolverCopyright © 2000–2024 Apache Software Foundation. All rights reserved.