类 TrueTypeFont
- java.lang.Object
-
- net.minecraft.client.font.TrueTypeFont
-
- 所有已实现的接口:
Closeable,AutoCloseable,Font
@Environment(CLIENT) public class TrueTypeFont extends Object implements Font
- Mappings:
Namespace Name official dnsintermediary net/minecraft/class_395named net/minecraft/client/font/TrueTypeFont
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 (专用程序包) classTrueTypeFont.TtfGlyph
-
字段概要
字段 修饰符和类型 字段 说明 private floatascentprivate IntSetexcludedCharactersprivate ByteBufferfield_21839private STBTTFontinfoinfoprivate floatoversampleprivate floatscaleFactorprivate floatshiftXprivate floatshiftY
-
构造器概要
构造器 构造器 说明 TrueTypeFont(ByteBuffer byteBuffer, STBTTFontinfo info, float float2, float oversample, float float3, float float4, String string)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclose()@Nullable TrueTypeFont.TtfGlyphgetGlyph(int int2)IntSetgetProvidedGlyphs()Returns the set of code points for which this font can provide glyphs.
-
-
-
字段详细资料
-
field_21839
private final ByteBuffer field_21839
- Mappings:
Namespace Name Mixin selector official aLdns;a:Ljava/nio/ByteBuffer;intermediary field_21839Lnet/minecraft/class_395;field_21839:Ljava/nio/ByteBuffer;named field_21839Lnet/minecraft/client/font/TrueTypeFont;field_21839:Ljava/nio/ByteBuffer;
-
info
private final STBTTFontinfo info
- Mappings:
Namespace Name Mixin selector official bLdns;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
private final float oversample
- Mappings:
Namespace Name Mixin selector official cLdns;c:Fintermediary field_2321Lnet/minecraft/class_395;field_2321:Fnamed oversampleLnet/minecraft/client/font/TrueTypeFont;oversample:F
-
excludedCharacters
private final IntSet excludedCharacters
- Mappings:
Namespace Name Mixin selector official dLdns;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
private final float shiftX
- Mappings:
Namespace Name Mixin selector official eLdns;e:Fintermediary field_2320Lnet/minecraft/class_395;field_2320:Fnamed shiftXLnet/minecraft/client/font/TrueTypeFont;shiftX:F
-
shiftY
private final float shiftY
- Mappings:
Namespace Name Mixin selector official fLdns;f:Fintermediary field_2318Lnet/minecraft/class_395;field_2318:Fnamed shiftYLnet/minecraft/client/font/TrueTypeFont;shiftY:F
-
scaleFactor
private final float scaleFactor
- Mappings:
Namespace Name Mixin selector official gLdns;g:Fintermediary field_2325Lnet/minecraft/class_395;field_2325:Fnamed scaleFactorLnet/minecraft/client/font/TrueTypeFont;scaleFactor:F
-
ascent
private final float ascent
- Mappings:
Namespace Name Mixin selector official hLdns;h:Fintermediary field_2324Lnet/minecraft/class_395;field_2324:Fnamed ascentLnet/minecraft/client/font/TrueTypeFont;ascent:F
-
-
构造器详细资料
-
TrueTypeFont
public TrueTypeFont(ByteBuffer byteBuffer, STBTTFontinfo info, float float2, float oversample, float float3, float float4, String string)
- Mappings:
Namespace Name Mixin selector official <init>Ldns;<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
-
-
方法详细资料
-
getGlyph
@Nullable public @Nullable TrueTypeFont.TtfGlyph getGlyph(int int2)
- 指定者:
getGlyph在接口中Font- Mappings:
Namespace Name Mixin selector official bLdns;b(I)Ldns$a;intermediary method_2051Lnet/minecraft/class_395;method_2051(I)Lnet/minecraft/class_395$class_397;named getGlyphLnet/minecraft/client/font/TrueTypeFont;getGlyph(I)Lnet/minecraft/client/font/TrueTypeFont$TtfGlyph;
-
close
public void close()
-
getProvidedGlyphs
public IntSet getProvidedGlyphs()
Returns the set of code points for which this font can provide glyphs.- 指定者:
getProvidedGlyphs在接口中Font- 返回:
- a set of integer code points.
- Mappings:
Namespace Name Mixin selector official aLdnq;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;
-
-