public class VerticalMetricsTable extends TTFTable
Modifier and Type | Field and Description |
---|---|
private short[] |
additionalTopSideBearing |
private int[] |
advanceHeight |
private int |
numVMetrics |
static java.lang.String |
TAG
A tag that identifies this table type.
|
private short[] |
topSideBearing |
font, initialized
Constructor and Description |
---|
VerticalMetricsTable(TrueTypeFont font) |
Modifier and Type | Method and Description |
---|---|
int |
getAdvanceHeight(int gid)
Returns the advance height for the given GID.
|
int |
getTopSideBearing(int gid)
Returns the top sidebearing 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[] advanceHeight
private short[] topSideBearing
private short[] additionalTopSideBearing
private int numVMetrics
VerticalMetricsTable(TrueTypeFont font)
void read(TrueTypeFont ttf, TTFDataStream data) throws java.io.IOException
public int getTopSideBearing(int gid)
gid
- GIDpublic int getAdvanceHeight(int gid)
gid
- GID