public class HorizontalMetricsTable 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 |
getAdvanceWidth(int gid)
Returns the advance width for the given GID.
|
int |
getLeftSideBearing(int gid)
Returns the left side bearing 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 getAdvanceWidth(int gid)
gid
- GIDpublic int getLeftSideBearing(int gid)
gid
- GIDCopyright © 2002–2018 The Apache Software Foundation. All rights reserved.