Package net.minecraft.client.font
Class TrueTypeFont.TtfGlyph
java.lang.Object
net.minecraft.client.font.TrueTypeFont.TtfGlyph
- All Implemented Interfaces:
Glyph
,RenderableGlyph
- Enclosing class:
- TrueTypeFont
@Environment(CLIENT) class TrueTypeFont.TtfGlyph extends Object implements RenderableGlyph
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description private
TtfGlyph(int xMin, int xMax, int yMax, int yMin, float advance, float bearing, int index)
-
Method Summary
Modifier and Type Method Description float
getAdvance()
float
getAscent()
float
getBearingX()
int
getHeight()
float
getOversample()
int
getWidth()
boolean
hasColor()
void
upload(int x, int y)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.font.Glyph
getAdvance, getBoldOffset, getShadowOffset
Methods inherited from interface net.minecraft.client.font.RenderableGlyph
getXMax, getXMin, getYMax, getYMin
-
Field Details
-
width
private final int width -
height
private final int height -
bearingX
private final float bearingX -
ascent
private final float ascent -
advance
private final float advance -
glyphIndex
private final int glyphIndex
-
-
Constructor Details
-
TtfGlyph
private TtfGlyph(int xMin, int xMax, int yMax, int yMin, float advance, float bearing, int index)
-
-
Method Details
-
getWidth
public int getWidth()- Specified by:
getWidth
in interfaceRenderableGlyph
-
getHeight
public int getHeight()- Specified by:
getHeight
in interfaceRenderableGlyph
-
getOversample
public float getOversample()- Specified by:
getOversample
in interfaceRenderableGlyph
-
getAdvance
public float getAdvance()- Specified by:
getAdvance
in interfaceGlyph
-
getBearingX
public float getBearingX()- Specified by:
getBearingX
in interfaceGlyph
-
getAscent
public float getAscent()- Specified by:
getAscent
in interfaceRenderableGlyph
-
upload
public void upload(int x, int y)- Specified by:
upload
in interfaceRenderableGlyph
-
hasColor
public boolean hasColor()- Specified by:
hasColor
in interfaceRenderableGlyph
-