@Environment(value=CLIENT) public static class BitmapFont.Loader extends Object implements FontLoader
Modifier and Type | Field and Description |
---|---|
private int |
ascent |
private List<int[]> |
chars |
private Identifier |
filename |
private int |
height |
Constructor and Description |
---|
Loader(Identifier id,
int height,
int ascent,
List<int[]> chars) |
Modifier and Type | Method and Description |
---|---|
private int |
findCharacterStartX(NativeImage image,
int characterWidth,
int characterHeight,
int charPosX,
int charPosY) |
static BitmapFont.Loader |
fromJson(JsonObject json) |
Font |
load(ResourceManager manager) |
private final Identifier filename
private final List<int[]> chars
private final int height
private final int ascent
public Loader(Identifier id, int height, int ascent, List<int[]> chars)
public static BitmapFont.Loader fromJson(JsonObject json)
@Nullable public Font load(ResourceManager manager)
load
in interface FontLoader
private int findCharacterStartX(NativeImage image, int characterWidth, int characterHeight, int charPosX, int charPosY)