Class TrueTypeFont

java.lang.Object
net.minecraft.client.font.TrueTypeFont
All Implemented Interfaces:
AutoCloseable, Font

@Environment(CLIENT) public class TrueTypeFont extends Object implements Font
Mappings:
Namespace Name
named net/minecraft/client/font/TrueTypeFont
intermediary net/minecraft/class_395
official ezp
  • Field Details

    • buffer

      @Nullable private @Nullable ByteBuffer buffer
      Mappings:
      Namespace Name Mixin selector
      named buffer Lnet/minecraft/client/font/TrueTypeFont;buffer:Ljava/nio/ByteBuffer;
      intermediary field_21839 Lnet/minecraft/class_395;field_21839:Ljava/nio/ByteBuffer;
      official b Lezp;b:Ljava/nio/ByteBuffer;
    • face

      @Nullable private @Nullable FT_Face face
      Mappings:
      Namespace Name Mixin selector
      named face Lnet/minecraft/client/font/TrueTypeFont;face:Lorg/lwjgl/util/freetype/FT_Face;
      intermediary field_48383 Lnet/minecraft/class_395;field_48383:Lorg/lwjgl/util/freetype/FT_Face;
      official c Lezp;c:Lorg/lwjgl/util/freetype/FT_Face;
    • oversample

      final float oversample
      Mappings:
      Namespace Name Mixin selector
      named oversample Lnet/minecraft/client/font/TrueTypeFont;oversample:F
      intermediary field_2321 Lnet/minecraft/class_395;field_2321:F
      official d Lezp;d:F
    • excludedCharacters

      private final IntSet excludedCharacters
      Mappings:
      Namespace Name Mixin selector
      named excludedCharacters Lnet/minecraft/client/font/TrueTypeFont;excludedCharacters:Lit/unimi/dsi/fastutil/ints/IntSet;
      intermediary field_2319 Lnet/minecraft/class_395;field_2319:Lit/unimi/dsi/fastutil/ints/IntSet;
      official e Lezp;e:Lit/unimi/dsi/fastutil/ints/IntSet;
  • Constructor Details

    • TrueTypeFont

      public TrueTypeFont(ByteBuffer buffer, FT_Face face, float size, float oversample, float shiftX, float shiftY, String excludedCharacters)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/font/TrueTypeFont;<init>(Ljava/nio/ByteBuffer;Lorg/lwjgl/util/freetype/FT_Face;FFFFLjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_395;<init>(Ljava/nio/ByteBuffer;Lorg/lwjgl/util/freetype/FT_Face;FFFFLjava/lang/String;)V
      official <init> Lezp;<init>(Ljava/nio/ByteBuffer;Lorg/lwjgl/util/freetype/FT_Face;FFFFLjava/lang/String;)V
  • Method Details

    • getGlyph

      @Nullable public @Nullable Glyph getGlyph(int codePoint)
      Specified by:
      getGlyph in interface Font
      Mappings:
      Namespace Name Mixin selector
      named getGlyph Lnet/minecraft/client/font/Font;getGlyph(I)Lnet/minecraft/client/font/Glyph;
      intermediary method_2040 Lnet/minecraft/class_390;method_2040(I)Lnet/minecraft/class_379;
      official a Lezm;a(I)Lezl;
    • getInfo

      FT_Face getInfo()
      Mappings:
      Namespace Name Mixin selector
      named getInfo Lnet/minecraft/client/font/TrueTypeFont;getInfo()Lorg/lwjgl/util/freetype/FT_Face;
      intermediary method_51884 Lnet/minecraft/class_395;method_51884()Lorg/lwjgl/util/freetype/FT_Face;
      official b Lezp;b()Lorg/lwjgl/util/freetype/FT_Face;
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Font
    • getProvidedGlyphs

      public IntSet getProvidedGlyphs()
      Returns the set of code points for which this font can provide glyphs.
      Specified by:
      getProvidedGlyphs in interface Font
      Returns:
      the set of code points for which this font can provide glyphs
      Mappings:
      Namespace Name Mixin selector
      named getProvidedGlyphs Lnet/minecraft/client/font/Font;getProvidedGlyphs()Lit/unimi/dsi/fastutil/ints/IntSet;
      intermediary method_27442 Lnet/minecraft/class_390;method_27442()Lit/unimi/dsi/fastutil/ints/IntSet;
      official a Lezm;a()Lit/unimi/dsi/fastutil/ints/IntSet;