@Environment(value=CLIENT) class TrueTypeFont.TtfGlyph extends Object implements RenderableGlyph
Modifier and Type | Field and Description |
---|---|
private float |
advance |
private float |
ascent |
private float |
bearingX |
private int |
glyphIndex |
private int |
height |
private int |
width |
Modifier | Constructor and Description |
---|---|
private |
TtfGlyph(int xMin,
int xMax,
int yMax,
int yMin,
float advance,
float bearing,
int index) |
Modifier and Type | Method and Description |
---|---|
float |
getAdvance() |
float |
getAscent() |
float |
getBearingX() |
int |
getHeight() |
float |
getOversample() |
int |
getWidth() |
boolean |
hasColor() |
void |
upload(int x,
int y) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getXMax, getXMin, getYMax, getYMin
getAdvance, getBoldOffset, getShadowOffset
private final int width
private final int height
private final float bearingX
private final float ascent
private final float advance
private final int glyphIndex
private TtfGlyph(int xMin, int xMax, int yMax, int yMin, float advance, float bearing, int index)
public int getWidth()
getWidth
in interface RenderableGlyph
public int getHeight()
getHeight
in interface RenderableGlyph
public float getOversample()
getOversample
in interface RenderableGlyph
public float getAdvance()
getAdvance
in interface Glyph
public float getBearingX()
getBearingX
in interface Glyph
public float getAscent()
getAscent
in interface RenderableGlyph
public void upload(int x, int y)
upload
in interface RenderableGlyph
public boolean hasColor()
hasColor
in interface RenderableGlyph