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 FontFamilyResolver
public GVTFontFamily loadFont(InputStream in, FontFace ff) throws Exception
loadFont
in interface FontFamilyResolver
Exception
public GVTFontFamily resolve(String familyName)
resolve
in interface FontFamilyResolver
familyName
- The Font Family name to resolvepublic GVTFontFamily getFamilyThatCanDisplay(char c)
getFamilyThatCanDisplay
in interface FontFamilyResolver
public GVTFontFamily getDefault()
getDefault
in interface FontFamilyResolver
Copyright © 2000–2023 Apache Software Foundation. All rights reserved.