Package net.minecraft.client.font
Class TrueTypeFont
java.lang.Object
net.minecraft.client.font.TrueTypeFont
- All Implemented Interfaces:
AutoCloseable,Font
- Mappings:
Namespace Name official eghintermediary net/minecraft/class_395named net/minecraft/client/font/TrueTypeFont
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final floatprivate @Nullable ByteBufferprivate final IntSetprivate @Nullable STBTTFontinfo(package private) final float(package private) final float(package private) final float(package private) final float -
Constructor Summary
ConstructorsConstructorDescriptionTrueTypeFont(ByteBuffer buffer, STBTTFontinfo info, float size, float oversample, float shiftX, float shiftY, String excludedCharacters) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getGlyph(int codePoint) Returns the set of code points for which this font can provide glyphs.(package private) STBTTFontinfo
-
Field Details
-
buffer
- Mappings:
Namespace Name Mixin selector official aLegh;a:Ljava/nio/ByteBuffer;intermediary field_21839Lnet/minecraft/class_395;field_21839:Ljava/nio/ByteBuffer;named bufferLnet/minecraft/client/font/TrueTypeFont;buffer:Ljava/nio/ByteBuffer;
-
info
- Mappings:
Namespace Name Mixin selector official bLegh;b:Lorg/lwjgl/stb/STBTTFontinfo;intermediary field_2323Lnet/minecraft/class_395;field_2323:Lorg/lwjgl/stb/STBTTFontinfo;named infoLnet/minecraft/client/font/TrueTypeFont;info:Lorg/lwjgl/stb/STBTTFontinfo;
-
oversample
final float oversample- Mappings:
Namespace Name Mixin selector official cLegh;c:Fintermediary field_2321Lnet/minecraft/class_395;field_2321:Fnamed oversampleLnet/minecraft/client/font/TrueTypeFont;oversample:F
-
excludedCharacters
- Mappings:
Namespace Name Mixin selector official dLegh;d:Lit/unimi/dsi/fastutil/ints/IntSet;intermediary field_2319Lnet/minecraft/class_395;field_2319:Lit/unimi/dsi/fastutil/ints/IntSet;named excludedCharactersLnet/minecraft/client/font/TrueTypeFont;excludedCharacters:Lit/unimi/dsi/fastutil/ints/IntSet;
-
shiftX
final float shiftX- Mappings:
Namespace Name Mixin selector official eLegh;e:Fintermediary field_2320Lnet/minecraft/class_395;field_2320:Fnamed shiftXLnet/minecraft/client/font/TrueTypeFont;shiftX:F
-
shiftY
final float shiftY- Mappings:
Namespace Name Mixin selector official fLegh;f:Fintermediary field_2318Lnet/minecraft/class_395;field_2318:Fnamed shiftYLnet/minecraft/client/font/TrueTypeFont;shiftY:F
-
scaleFactor
final float scaleFactor- Mappings:
Namespace Name Mixin selector official gLegh;g:Fintermediary field_2325Lnet/minecraft/class_395;field_2325:Fnamed scaleFactorLnet/minecraft/client/font/TrueTypeFont;scaleFactor:F
-
ascent
final float ascent- Mappings:
Namespace Name Mixin selector official hLegh;h:Fintermediary field_2324Lnet/minecraft/class_395;field_2324:Fnamed ascentLnet/minecraft/client/font/TrueTypeFont;ascent:F
-
-
Constructor Details
-
TrueTypeFont
public TrueTypeFont(ByteBuffer buffer, STBTTFontinfo info, float size, float oversample, float shiftX, float shiftY, String excludedCharacters) - Mappings:
Namespace Name Mixin selector official <init>Legh;<init>(Ljava/nio/ByteBuffer;Lorg/lwjgl/stb/STBTTFontinfo;FFFFLjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_395;<init>(Ljava/nio/ByteBuffer;Lorg/lwjgl/stb/STBTTFontinfo;FFFFLjava/lang/String;)Vnamed <init>Lnet/minecraft/client/font/TrueTypeFont;<init>(Ljava/nio/ByteBuffer;Lorg/lwjgl/stb/STBTTFontinfo;FFFFLjava/lang/String;)V
-
-
Method Details
-
getGlyph
-
method_51884
STBTTFontinfo method_51884()- Mappings:
Namespace Name Mixin selector official bLegh;b()Lorg/lwjgl/stb/STBTTFontinfo;intermediary method_51884Lnet/minecraft/class_395;method_51884()Lorg/lwjgl/stb/STBTTFontinfo;named method_51884Lnet/minecraft/client/font/TrueTypeFont;method_51884()Lorg/lwjgl/stb/STBTTFontinfo;
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceFont
-
getProvidedGlyphs
Returns the set of code points for which this font can provide glyphs.- Specified by:
getProvidedGlyphsin interfaceFont- Returns:
- the set of code points for which this font can provide glyphs
- Mappings:
Namespace Name Mixin selector official aLege;a()Lit/unimi/dsi/fastutil/ints/IntSet;intermediary method_27442Lnet/minecraft/class_390;method_27442()Lit/unimi/dsi/fastutil/ints/IntSet;named getProvidedGlyphsLnet/minecraft/client/font/Font;getProvidedGlyphs()Lit/unimi/dsi/fastutil/ints/IntSet;
-