@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, waitgetXMax, getXMin, getYMax, getYMingetAdvance, getBoldOffset, getShadowOffsetprivate 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 RenderableGlyphpublic int getHeight()
getHeight in interface RenderableGlyphpublic float getOversample()
getOversample in interface RenderableGlyphpublic float getAdvance()
getAdvance in interface Glyphpublic float getBearingX()
getBearingX in interface Glyphpublic float getAscent()
getAscent in interface RenderableGlyphpublic void upload(int x,
int y)
upload in interface RenderableGlyphpublic boolean hasColor()
hasColor in interface RenderableGlyph