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) class
TrueTypeFont.TtfGlyph
-
Field Summary
Fields Modifier and Type Field Description private float
ascent
private IntSet
excludedCharacters
private ByteBuffer
field_21839
private STBTTFontinfo
info
private float
oversample
private float
scaleFactor
private float
shiftX
private float
shiftY
-
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 void
close()
TrueTypeFont.TtfGlyph
getGlyph(int int2)
IntSet
getProvidedGlyphs()
Returns the set of code points for which this font can provide glyphs.
-
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() -
getProvidedGlyphs
Returns the set of code points for which this font can provide glyphs.- Specified by:
getProvidedGlyphs
in interfaceFont
- Returns:
- a set of integer code points.
-