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 ByteBufferprivate final CodepointMap<TrueTypeGlyphProvider.GlyphEntry> private final floatFields inherited from interface GlyphProvider
BASELINE -
Constructor Summary
ConstructorsConstructorDescriptionTrueTypeGlyphProvider(ByteBuffer fontMemory, FT_Face face, float size, float oversample, float shiftX, float shiftY, String skip) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getGlyph(int codepoint) private UnbakedGlyphgetOrLoadGlyphInfo(int codepoint, TrueTypeGlyphProvider.GlyphEntry entry) it.unimi.dsi.fastutil.ints.IntSetprivate UnbakedGlyphprivate FT_Face
-
Field Details
-
fontMemory
-
face
-
oversample
private final float oversample -
glyphs
-
-
Constructor Details
-
TrueTypeGlyphProvider
public TrueTypeGlyphProvider(ByteBuffer fontMemory, FT_Face face, float size, float oversample, float shiftX, float shiftY, String skip)
-
-
Method Details
-
getGlyph
- Specified by:
getGlyphin interfaceGlyphProvider
-
getOrLoadGlyphInfo
-
loadGlyph
-
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
-