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 privateTtfGlyph(int xMin, int xMax, int yMax, int yMin, float advance, float bearing, int index) -
Method Summary
Modifier and Type Method Description floatgetAdvance()floatgetAscent()floatgetBearingX()intgetHeight()floatgetOversample()intgetWidth()booleanhasColor()voidupload(int x, int y)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.font.Glyph
getAdvance, getBoldOffset, getShadowOffsetMethods inherited from interface net.minecraft.client.font.RenderableGlyph
getXMax, getXMin, getYMax, getYMin
-
Field Details
-
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:
getWidthin interfaceRenderableGlyph
-
getHeight
public int getHeight()- Specified by:
getHeightin interfaceRenderableGlyph
-
getOversample
public float getOversample()- Specified by:
getOversamplein interfaceRenderableGlyph
-
getAdvance
public float getAdvance()- Specified by:
getAdvancein interfaceGlyph
-
getBearingX
public float getBearingX()- Specified by:
getBearingXin interfaceGlyph
-
getAscent
public float getAscent()- Specified by:
getAscentin interfaceRenderableGlyph
-
upload
public void upload(int x, int y)- Specified by:
uploadin interfaceRenderableGlyph
-
hasColor
public boolean hasColor()- Specified by:
hasColorin interfaceRenderableGlyph
-