public final class DefaultFontFamilyResolver extends java.lang.Object implements FontFamilyResolver
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.List |
awtFontFamilies |
protected static java.util.List |
awtFonts |
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.
|
static DefaultFontFamilyResolver |
SINGLETON |
| Modifier and Type | Method and Description |
|---|---|
GVTFontFamily |
getDefault() |
GVTFontFamily |
getFamilyThatCanDisplay(char c) |
GVTFontFamily |
loadFont(java.io.InputStream in,
FontFace ff) |
GVTFontFamily |
resolve(java.lang.String familyName)
Resolves a font family name into a GVTFontFamily.
|
AWTFontFamily |
resolve(java.lang.String familyName,
FontFace fontFace) |
public static final DefaultFontFamilyResolver SINGLETON
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 AWTFontFamily resolve(java.lang.String familyName, FontFace fontFace)
resolve in interface FontFamilyResolverpublic GVTFontFamily loadFont(java.io.InputStream in, FontFace ff) throws java.lang.Exception
loadFont in interface FontFamilyResolverjava.lang.Exceptionpublic GVTFontFamily resolve(java.lang.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 ? 2015 Apache Software Foundation. All Rights Reserved.