@Environment(value=CLIENT) public class TrueTypeFont extends Object implements Font
Modifier and Type | Class and Description |
---|---|
(package private) class |
TrueTypeFont.TtfGlyph |
Modifier and Type | Field and Description |
---|---|
private float |
ascent |
private it.unimi.dsi.fastutil.ints.IntSet |
excludedCharacters |
private ByteBuffer |
field_21839 |
private org.lwjgl.stb.STBTTFontinfo |
info |
private float |
oversample |
private float |
scaleFactor |
private float |
shiftX |
private float |
shiftY |
Constructor and Description |
---|
TrueTypeFont(ByteBuffer byteBuffer,
org.lwjgl.stb.STBTTFontinfo sTBTTFontinfo,
float float2,
float float3,
float float4,
float float5,
String string) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
TrueTypeFont.TtfGlyph |
getGlyph(int int2) |
it.unimi.dsi.fastutil.ints.IntSet |
getProvidedGlyphs()
Returns the set of code points for which this font can provide glyphs.
|
private final ByteBuffer field_21839
private final org.lwjgl.stb.STBTTFontinfo info
private final float oversample
private final it.unimi.dsi.fastutil.ints.IntSet excludedCharacters
private final float shiftX
private final float shiftY
private final float scaleFactor
private final float ascent
public TrueTypeFont(ByteBuffer byteBuffer, org.lwjgl.stb.STBTTFontinfo sTBTTFontinfo, float float2, float float3, float float4, float float5, String string)
@Nullable public TrueTypeFont.TtfGlyph getGlyph(int int2)
public void close()
public it.unimi.dsi.fastutil.ints.IntSet getProvidedGlyphs()
getProvidedGlyphs
in interface Font