public class StrictFontLoader
extends java.lang.Object
A font matches if:
| Constructor and Description |
|---|
StrictFontLoader()
Creates a strict font loader.
|
| Modifier and Type | Method and Description |
|---|---|
ej.microui.display.Font |
getFont(java.lang.String family,
int size)
Gets the MicroUI font matching the given parameters and with the plain style.
|
ej.microui.display.Font |
getFont(java.lang.String family,
int size,
int style)
Gets the MicroUI font matching the given parameters.
|
protected int |
getFontHeight(int size)
Gets the expected font height in pixels for the given size.
|
public ej.microui.display.Font getFont(java.lang.String family,
int size,
int style)
family - the font family.size - the font size.style - the font style.public ej.microui.display.Font getFont(java.lang.String family,
int size)
family - the font family.size - the font size.protected int getFontHeight(int size)
This method may be overridden in order to interpret the size parameter in an other way.
size - the font size.