public class FontCache extends Object
| Constructor and Description |
|---|
FontCache() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearSavedFonts()
Clears the cache by removing fonts that were added via
saveFont(FontProgram, String). |
static FontProgram |
getFont(String fontName) |
static FontProgram |
saveFont(FontProgram font,
String fontName) |
public static void clearSavedFonts()
saveFont(FontProgram, String).
Be aware that in multithreading environment this method call will affect the result of getFont(String).
This in its turn affects creation of fonts via factories when cached argument is set to true (which is by default).
public static FontProgram getFont(String fontName)
public static FontProgram saveFont(FontProgram font, String fontName)
Copyright © 1998–2025 Apryse Group NV. All rights reserved.