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 FontFamilyResolver
public GVTFontFamily loadFont(java.io.InputStream in, FontFace ff) throws java.lang.Exception
loadFont
in interface FontFamilyResolver
java.lang.Exception
public GVTFontFamily resolve(java.lang.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 © 2022 Apache Software Foundation. All Rights Reserved.