Package net.minecraft.client.font
Class TrueTypeFont
java.lang.Object
net.minecraft.client.font.TrueTypeFont
- All Implemented Interfaces:
Closeable,AutoCloseable,Font
@Environment(CLIENT) public class TrueTypeFont extends Object implements Font
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classTrueTypeFont.TtfGlyph -
Field Summary
Fields Modifier and Type Field Description private floatascentprivate IntSetexcludedCharactersprivate ByteBufferfield_21839private STBTTFontinfoinfoprivate floatoversampleprivate floatscaleFactorprivate floatshiftXprivate floatshiftY -
Constructor Summary
Constructors Constructor Description TrueTypeFont(ByteBuffer byteBuffer, STBTTFontinfo sTBTTFontinfo, float float2, float float3, float float4, float float5, String string) -
Method Summary
Modifier and Type Method Description voidclose()TrueTypeFont.TtfGlyphgetGlyph(int int2)IntSetmethod_27442()
-
Field Details
-
field_21839
-
info
-
oversample
private final float oversample -
excludedCharacters
-
shiftX
private final float shiftX -
shiftY
private final float shiftY -
scaleFactor
private final float scaleFactor -
ascent
private final float ascent
-
-
Constructor Details
-
TrueTypeFont
public TrueTypeFont(ByteBuffer byteBuffer, STBTTFontinfo sTBTTFontinfo, float float2, float float3, float float4, float float5, String string)
-
-
Method Details
-
getGlyph
-
close
public void close() -
method_27442
- Specified by:
method_27442in interfaceFont
-