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
- Mappings:
Namespace Name official dki
intermediary net/minecraft/class_395
named net/minecraft/client/font/TrueTypeFont
-
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 info, float float2, float oversample, float float3, float float4, 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
- Mappings:
Namespace Name Mixin selector official a
Ldki;a:Ljava/nio/ByteBuffer;
intermediary field_21839
Lnet/minecraft/class_395;field_21839:Ljava/nio/ByteBuffer;
named field_21839
Lnet/minecraft/client/font/TrueTypeFont;field_21839:Ljava/nio/ByteBuffer;
-
info
- Mappings:
Namespace Name Mixin selector official b
Ldki;b:Lorg/lwjgl/stb/STBTTFontinfo;
intermediary field_2323
Lnet/minecraft/class_395;field_2323:Lorg/lwjgl/stb/STBTTFontinfo;
named info
Lnet/minecraft/client/font/TrueTypeFont;info:Lorg/lwjgl/stb/STBTTFontinfo;
-
oversample
private final float oversample- Mappings:
Namespace Name Mixin selector official c
Ldki;c:F
intermediary field_2321
Lnet/minecraft/class_395;field_2321:F
named oversample
Lnet/minecraft/client/font/TrueTypeFont;oversample:F
-
excludedCharacters
- Mappings:
Namespace Name Mixin selector official d
Ldki;d:Lit/unimi/dsi/fastutil/ints/IntSet;
intermediary field_2319
Lnet/minecraft/class_395;field_2319:Lit/unimi/dsi/fastutil/ints/IntSet;
named excludedCharacters
Lnet/minecraft/client/font/TrueTypeFont;excludedCharacters:Lit/unimi/dsi/fastutil/ints/IntSet;
-
shiftX
private final float shiftX- Mappings:
Namespace Name Mixin selector official e
Ldki;e:F
intermediary field_2320
Lnet/minecraft/class_395;field_2320:F
named shiftX
Lnet/minecraft/client/font/TrueTypeFont;shiftX:F
-
shiftY
private final float shiftY- Mappings:
Namespace Name Mixin selector official f
Ldki;f:F
intermediary field_2318
Lnet/minecraft/class_395;field_2318:F
named shiftY
Lnet/minecraft/client/font/TrueTypeFont;shiftY:F
-
scaleFactor
private final float scaleFactor- Mappings:
Namespace Name Mixin selector official g
Ldki;g:F
intermediary field_2325
Lnet/minecraft/class_395;field_2325:F
named scaleFactor
Lnet/minecraft/client/font/TrueTypeFont;scaleFactor:F
-
ascent
private final float ascent- Mappings:
Namespace Name Mixin selector official h
Ldki;h:F
intermediary field_2324
Lnet/minecraft/class_395;field_2324:F
named ascent
Lnet/minecraft/client/font/TrueTypeFont;ascent:F
-
-
Constructor Details
-
TrueTypeFont
public TrueTypeFont(ByteBuffer byteBuffer, STBTTFontinfo info, float float2, float oversample, float float3, float float4, String string)- Mappings:
Namespace Name Mixin selector official <init>
Ldki;<init>(Ljava/nio/ByteBuffer;Lorg/lwjgl/stb/STBTTFontinfo;FFFFLjava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_395;<init>(Ljava/nio/ByteBuffer;Lorg/lwjgl/stb/STBTTFontinfo;FFFFLjava/lang/String;)V
named <init>
Lnet/minecraft/client/font/TrueTypeFont;<init>(Ljava/nio/ByteBuffer;Lorg/lwjgl/stb/STBTTFontinfo;FFFFLjava/lang/String;)V
-
-
Method Details
-
getGlyph
- Specified by:
getGlyph
in interfaceFont
- Mappings:
Namespace Name Mixin selector official b
Ldki;b(I)Ldki$a;
intermediary method_2051
Lnet/minecraft/class_395;method_2051(I)Lnet/minecraft/class_395$class_397;
named getGlyph
Lnet/minecraft/client/font/TrueTypeFont;getGlyph(I)Lnet/minecraft/client/font/TrueTypeFont$TtfGlyph;
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceFont
- Mappings:
Namespace Name Mixin selector official close
Ldkg;close()V
intermediary close
Lnet/minecraft/class_390;close()V
named close
Lnet/minecraft/client/font/Font;close()V
-
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.
- Mappings:
Namespace Name Mixin selector official a
Ldkg;a()Lit/unimi/dsi/fastutil/ints/IntSet;
intermediary method_27442
Lnet/minecraft/class_390;method_27442()Lit/unimi/dsi/fastutil/ints/IntSet;
named getProvidedGlyphs
Lnet/minecraft/client/font/Font;getProvidedGlyphs()Lit/unimi/dsi/fastutil/ints/IntSet;
-