public abstract class AbstractFontLoader extends java.lang.Object implements FontLoader
The font height for a font profile size can be configured by subclasses.
It uses a cache to retrieve fonts faster.
Constructor and Description |
---|
AbstractFontLoader()
Creates the application font loader.
|
Modifier and Type | Method and Description |
---|---|
ej.microui.display.Font |
getFont(FontProfile fontProfile)
Gets the MicroUI font matching the given font profile.
|
protected abstract int |
getFontHeight(FontProfile fontProfile)
Gets the expected font height in pixels for the given font profile.
|
public AbstractFontLoader()
public ej.microui.display.Font getFont(FontProfile fontProfile)
FontLoader
getFont
in interface FontLoader
fontProfile
- the font profile to match.protected abstract int getFontHeight(FontProfile fontProfile)
fontProfile
- the font profile.