public class Glyph
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
advanceWidth |
protected short |
leftSideBearing |
private Point[] |
points |
Constructor and Description |
---|
Glyph(GlyphDescription gd,
short lsb,
int advance) |
Modifier and Type | Method and Description |
---|---|
private void |
describe(GlyphDescription gd)
Set the points of a glyph from the GlyphDescription
|
int |
getAdvanceWidth() |
short |
getLeftSideBearing() |
Point |
getPoint(int i) |
int |
getPointCount() |
void |
reset()
Resets the glyph to the TrueType table settings
|
void |
scale(int factor) |
protected short leftSideBearing
protected int advanceWidth
private Point[] points
public Glyph(GlyphDescription gd, short lsb, int advance)
public int getAdvanceWidth()
public short getLeftSideBearing()
public Point getPoint(int i)
public int getPointCount()
public void reset()
public void scale(int factor)
factor
- a 16.16 fixed valueprivate void describe(GlyphDescription gd)