@Environment(value=CLIENT) public class TrueTypeFontLoader extends Object implements FontLoader
Modifier and Type | Field and Description |
---|---|
private String |
excludedCharacters |
private Identifier |
filename |
private static Logger |
LOGGER |
private float |
oversample |
private float |
shiftX |
private float |
shiftY |
private float |
size |
Constructor and Description |
---|
TrueTypeFontLoader(Identifier filename,
float size,
float oversample,
float shiftX,
float shiftY,
String excludedCharacters) |
Modifier and Type | Method and Description |
---|---|
static FontLoader |
fromJson(JsonObject json) |
Font |
load(ResourceManager manager) |
private static final Logger LOGGER
private final Identifier filename
private final float size
private final float oversample
private final float shiftX
private final float shiftY
private final String excludedCharacters
public TrueTypeFontLoader(Identifier filename, float size, float oversample, float shiftX, float shiftY, String excludedCharacters)
public static FontLoader fromJson(JsonObject json)
@Nullable public Font load(ResourceManager manager)
load
in interface FontLoader