Class TrueTypeGlyphProvider
java.lang.Object
com.mojang.blaze3d.font.TrueTypeGlyphProvider
- All Implemented Interfaces:
GlyphProvider, AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate static classNested classes/interfaces inherited from interface GlyphProvider
GlyphProvider.Conditional -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @Nullable org.lwjgl.util.freetype.FT_Faceprivate @Nullable ByteBufferprivate final CodepointMap<TrueTypeGlyphProvider.GlyphEntry> private final floatFields inherited from interface GlyphProvider
BASELINE -
Constructor Summary
ConstructorsConstructorDescriptionTrueTypeGlyphProvider(ByteBuffer fontMemory, org.lwjgl.util.freetype.FT_Face face, float size, float oversample, float shiftX, float shiftY, String skip) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()@Nullable UnbakedGlyphgetGlyph(int codepoint) private UnbakedGlyphgetOrLoadGlyphInfo(int codepoint, TrueTypeGlyphProvider.GlyphEntry entry) it.unimi.dsi.fastutil.ints.IntSetprivate UnbakedGlyphloadGlyph(int codepoint, org.lwjgl.util.freetype.FT_Face face, int index) private org.lwjgl.util.freetype.FT_Face
-
Field Details
-
fontMemory
-
face
private @Nullable org.lwjgl.util.freetype.FT_Face face -
oversample
private final float oversample -
glyphs
-
-
Constructor Details
-
TrueTypeGlyphProvider
public TrueTypeGlyphProvider(ByteBuffer fontMemory, org.lwjgl.util.freetype.FT_Face face, float size, float oversample, float shiftX, float shiftY, String skip)
-
-
Method Details
-
getGlyph
- Specified by:
getGlyphin interfaceGlyphProvider
-
getOrLoadGlyphInfo
-
loadGlyph
-
validateFontOpen
private org.lwjgl.util.freetype.FT_Face validateFontOpen() -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceGlyphProvider
-
getSupportedGlyphs
public it.unimi.dsi.fastutil.ints.IntSet getSupportedGlyphs()- Specified by:
getSupportedGlyphsin interfaceGlyphProvider
-