public class VerticalMetricsTable extends TTFTable
Modifier and Type | Field and Description |
---|---|
static String |
TAG
A tag that identifies this table type.
|
font, initialized
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
|
void |
read(TrueTypeFont ttf,
org.apache.fontbox.ttf.TTFDataStream data)
This will read the required data from the stream.
|
getCheckSum, getInitialized, getLength, getOffset, getTag
public static final String TAG
public void read(TrueTypeFont ttf, org.apache.fontbox.ttf.TTFDataStream data) throws IOException
ttf
- The font that is being read.data
- The stream to read the data from.IOException
- If there is an error reading the data.public int getTopSideBearing(int gid)
gid
- GIDpublic int getAdvanceHeight(int gid)
gid
- GIDCopyright © 2002–2018 The Apache Software Foundation. All rights reserved.