public final class Fonts extends ResourcesContainer<java.awt.Font>
Modifier and Type | Method and Description |
---|---|
java.awt.Font |
get(java.lang.String name,
float size) |
java.awt.Font |
get(java.lang.String name,
int style) |
java.awt.Font |
get(java.lang.String name,
int style,
float size) |
protected java.awt.Font |
load(java.net.URL resourceName)
Loads a custom font with the specified name from game's resources.
|
add, add, addClearedListener, addContainerListener, clear, contains, contains, contains, count, get, get, get, get, get, get, get, getAlias, getAll, getAsync, getAsync, getResources, remove, remove, removeClearedListener, removeContainerListener, tryGet, tryGet
public java.awt.Font get(java.lang.String name, float size)
public java.awt.Font get(java.lang.String name, int style)
public java.awt.Font get(java.lang.String name, int style, float size)
protected java.awt.Font load(java.net.URL resourceName)
fontName
, it tries to get the font from the environment by calling.load
in class ResourcesContainer<java.awt.Font>
resourceName
- The name of the fontFont.createFont(int, java.io.File)
,
Font.getFont(String)