public class HorizontalMetricsTable extends TTFTable
Modifier and Type | Field and Description |
---|---|
private int[] |
advanceWidth |
private short[] |
leftSideBearing |
private short[] |
nonHorizontalLeftSideBearing |
private int |
numHMetrics |
static java.lang.String |
TAG
A tag that identifies this table type.
|
font, initialized
Constructor and Description |
---|
HorizontalMetricsTable(TrueTypeFont font) |
Modifier and Type | Method and Description |
---|---|
int |
getAdvanceWidth(int gid)
Returns the advance width for the given GID.
|
int |
getLeftSideBearing(int gid)
Returns the left side bearing for the given GID.
|
(package private) void |
read(TrueTypeFont ttf,
TTFDataStream data)
This will read the required data from the stream.
|
getCheckSum, getInitialized, getLength, getOffset, getTag, setCheckSum, setLength, setOffset, setTag
public static final java.lang.String TAG
private int[] advanceWidth
private short[] leftSideBearing
private short[] nonHorizontalLeftSideBearing
private int numHMetrics
HorizontalMetricsTable(TrueTypeFont font)
void read(TrueTypeFont ttf, TTFDataStream data) throws java.io.IOException
public int getAdvanceWidth(int gid)
gid
- GIDpublic int getLeftSideBearing(int gid)
gid
- GID