public class Glyph
extends java.lang.Object
| Constructor and Description |
|---|
Glyph(int glyphIndex,
short advance,
short advanceOffset,
short ascenderOffset)
Initializes new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
Glyph |
deepClone()
Returns a clone of this instance.
|
short |
getAdditionalAdvance() |
short |
getAdvance()
Advance width indicating placement for the subsequent glyph.
|
short |
getAdvanceOffset()
Horizontal (x) offset relative to glyph position.
|
short |
getAscenderOffset()
Vertical (y) offset relative to glyph position.
|
int |
getGlyphIndex()
Index of the glyph (GID) in the physical font.
|
float |
getWidth(int em,
float fontSize)
Returns width (advance) of the glyph in points.
|
public Glyph(int glyphIndex,
short advance,
short advanceOffset,
short ascenderOffset)
glyphIndex - Glyph index.advance - Advance metric of the glyph.advanceOffset - Horizontal (x) offset.ascenderOffset - Vertical (y) offset.public int getGlyphIndex()
int value.public short getAdvance()
short value.public short getAdditionalAdvance()
public short getAdvanceOffset()
short value.public short getAscenderOffset()
short value.public float getWidth(int em,
float fontSize)
public Glyph deepClone()