Package net.minecraft.client.font
Class TrueTypeFont
java.lang.Object
net.minecraft.client.font.TrueTypeFont
- All Implemented Interfaces:
- AutoCloseable,- Font
- Mappings:
- Namespace - Name - official - egp- intermediary - net/minecraft/class_395- named - net/minecraft/client/font/TrueTypeFont
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionTrueTypeFont(ByteBuffer buffer, STBTTFontinfo info, float size, float oversample, float shiftX, float shiftY, String excludedCharacters) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()getGlyph(int codePoint) (package private) STBTTFontinfogetInfo()Returns the set of code points for which this font can provide glyphs.
- 
Field Details- 
buffer- Mappings:
- Namespace - Name - Mixin selector - official - a- Legp;a:Ljava/nio/ByteBuffer;- intermediary - field_21839- Lnet/minecraft/class_395;field_21839:Ljava/nio/ByteBuffer;- named - buffer- Lnet/minecraft/client/font/TrueTypeFont;buffer:Ljava/nio/ByteBuffer;
 
- 
info- Mappings:
- Namespace - Name - Mixin selector - official - b- Legp;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;
 
- 
oversamplefinal float oversample- Mappings:
- Namespace - Name - Mixin selector - official - c- Legp;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- Legp;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;
 
- 
shiftXfinal float shiftX- Mappings:
- Namespace - Name - Mixin selector - official - e- Legp;e:F- intermediary - field_2320- Lnet/minecraft/class_395;field_2320:F- named - shiftX- Lnet/minecraft/client/font/TrueTypeFont;shiftX:F
 
- 
shiftYfinal float shiftY- Mappings:
- Namespace - Name - Mixin selector - official - f- Legp;f:F- intermediary - field_2318- Lnet/minecraft/class_395;field_2318:F- named - shiftY- Lnet/minecraft/client/font/TrueTypeFont;shiftY:F
 
- 
scaleFactorfinal float scaleFactor- Mappings:
- Namespace - Name - Mixin selector - official - g- Legp;g:F- intermediary - field_2325- Lnet/minecraft/class_395;field_2325:F- named - scaleFactor- Lnet/minecraft/client/font/TrueTypeFont;scaleFactor:F
 
- 
ascentfinal float ascent- Mappings:
- Namespace - Name - Mixin selector - official - h- Legp;h:F- intermediary - field_2324- Lnet/minecraft/class_395;field_2324:F- named - ascent- Lnet/minecraft/client/font/TrueTypeFont;ascent:F
 
 
- 
- 
Constructor Details- 
TrueTypeFontpublic TrueTypeFont(ByteBuffer buffer, STBTTFontinfo info, float size, float oversample, float shiftX, float shiftY, String excludedCharacters) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Legp;<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
- 
getInfoSTBTTFontinfo getInfo()- Mappings:
- Namespace - Name - Mixin selector - official - b- Legp;b()Lorg/lwjgl/stb/STBTTFontinfo;- intermediary - method_51884- Lnet/minecraft/class_395;method_51884()Lorg/lwjgl/stb/STBTTFontinfo;- named - getInfo- Lnet/minecraft/client/font/TrueTypeFont;getInfo()Lorg/lwjgl/stb/STBTTFontinfo;
 
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Font
 
- 
getProvidedGlyphsReturns the set of code points for which this font can provide glyphs.- Specified by:
- getProvidedGlyphsin interface- Font
- Returns:
- the set of code points for which this font can provide glyphs
- Mappings:
- Namespace - Name - Mixin selector - official - a- Legm;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;
 
 
-