Package com.mojang.blaze3d.font
Class TrueTypeGlyphProvider
java.lang.Object
com.mojang.blaze3d.font.TrueTypeGlyphProvider
- All Implemented Interfaces:
GlyphProvider
,AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) class
(package private) static class
Nested classes/interfaces inherited from interface com.mojang.blaze3d.font.GlyphProvider
GlyphProvider.Conditional
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.lwjgl.util.freetype.FT_Face
private ByteBuffer
private final CodepointMap
<TrueTypeGlyphProvider.GlyphEntry> (package private) final float
Fields inherited from interface com.mojang.blaze3d.font.GlyphProvider
BASELINE
-
Constructor Summary
ConstructorsConstructorDescriptionTrueTypeGlyphProvider
(ByteBuffer p_83846_, org.lwjgl.util.freetype.FT_Face p_320481_, float p_83848_, float p_83849_, float p_83850_, float p_83851_, String p_83852_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
getGlyph
(int p_231116_) private GlyphInfo
getOrLoadGlyphInfo
(int p_365358_, TrueTypeGlyphProvider.GlyphEntry p_360879_) it.unimi.dsi.fastutil.ints.IntSet
private GlyphInfo
loadGlyph
(int p_361822_, org.lwjgl.util.freetype.FT_Face p_360350_, int p_362748_) (package private) org.lwjgl.util.freetype.FT_Face
-
Field Details
-
fontMemory
-
face
@Nullable private org.lwjgl.util.freetype.FT_Face face -
oversample
final float oversample -
glyphs
-
-
Constructor Details
-
TrueTypeGlyphProvider
public TrueTypeGlyphProvider(ByteBuffer p_83846_, org.lwjgl.util.freetype.FT_Face p_320481_, float p_83848_, float p_83849_, float p_83850_, float p_83851_, String p_83852_)
-
-
Method Details
-
getGlyph
- Specified by:
getGlyph
in interfaceGlyphProvider
-
getOrLoadGlyphInfo
-
loadGlyph
private GlyphInfo loadGlyph(int p_361822_, org.lwjgl.util.freetype.FT_Face p_360350_, int p_362748_) -
validateFontOpen
org.lwjgl.util.freetype.FT_Face validateFontOpen() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceGlyphProvider
-
getSupportedGlyphs
public it.unimi.dsi.fastutil.ints.IntSet getSupportedGlyphs()- Specified by:
getSupportedGlyphs
in interfaceGlyphProvider
-