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 classNested classes/interfaces inherited from interface com.mojang.blaze3d.font.GlyphProvider
GlyphProvider.Conditional -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.lwjgl.util.freetype.FT_Faceprivate ByteBufferprivate final CodepointMap<TrueTypeGlyphProvider.GlyphEntry> (package private) final floatFields inherited from interface com.mojang.blaze3d.font.GlyphProvider
BASELINE -
Constructor Summary
ConstructorsConstructorDescriptionTrueTypeGlyphProvider(ByteBuffer pFontMemory, org.lwjgl.util.freetype.FT_Face pFace, float pSize, float pOversample, float pShiftX, float pShiftY, String pSkip) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getGlyph(int p_231116_) private UnbakedGlyphgetOrLoadGlyphInfo(int pCharacter, TrueTypeGlyphProvider.GlyphEntry pGlyphEntry) it.unimi.dsi.fastutil.ints.IntSetprivate UnbakedGlyphloadGlyph(int pCharacter, org.lwjgl.util.freetype.FT_Face pFace, int pIndex) (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 pFontMemory, org.lwjgl.util.freetype.FT_Face pFace, float pSize, float pOversample, float pShiftX, float pShiftY, String pSkip)
-
-
Method Details
-
getGlyph
- Specified by:
getGlyphin interfaceGlyphProvider
-
getOrLoadGlyphInfo
private UnbakedGlyph getOrLoadGlyphInfo(int pCharacter, TrueTypeGlyphProvider.GlyphEntry pGlyphEntry) -
loadGlyph
-
validateFontOpen
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
-