public class AWTFontRegistry extends Object implements FontRegistry
| Constructor and Description |
|---|
AWTFontRegistry() |
| Modifier and Type | Method and Description |
|---|---|
FontMetricsFactory |
createMetricsFactory()
Creates a new font metrics factory.
|
String[] |
getAllRegisteredFamilies() |
FontFamily |
getFontFamily(String name)
Tries to find a font family with the given name, looking through all alternative font names if neccessary.
|
String[] |
getRegisteredFamilies() |
FontCache |
getSecondLevelCache() |
void |
initialize() |
protected static FontCache |
internalGetSecondLevelCache() |
protected static FontCache internalGetSecondLevelCache()
public void initialize()
initialize in interface FontRegistrypublic FontCache getSecondLevelCache()
getSecondLevelCache in interface FontRegistrypublic FontMetricsFactory createMetricsFactory()
createMetricsFactory in interface FontRegistrypublic FontFamily getFontFamily(String name)
FontRegistrygetFontFamily in interface FontRegistrypublic String[] getRegisteredFamilies()
getRegisteredFamilies in interface FontRegistrypublic String[] getAllRegisteredFamilies()
getAllRegisteredFamilies in interface FontRegistryCopyright © 2021 Hitachi Vantara. All rights reserved.