public class HmtxTable extends TrueTypeTable
CMAP_TABLE, GLYF_TABLE, HEAD_TABLE, HHEA_TABLE, HMTX_TABLE, LOCA_TABLE, MAXP_TABLE, NAME_TABLE, POST_TABLE| Modifier | Constructor and Description |
|---|---|
protected |
HmtxTable(TrueTypeFont ttf)
Creates a new instance of HmtxTable
|
| Modifier and Type | Method and Description |
|---|---|
short |
getAdvance(int glyphID)
get the advance of a given glyph
|
ByteBuffer |
getData()
get the data in this map as a ByteBuffer
|
short |
getLeftSideBearing(int glyphID)
get the left side bearing of a given glyph
|
int |
getLength()
Get the length of this table
|
void |
setData(ByteBuffer data)
Initialize this structure from a ByteBuffer
|
createTable, createTable, getTag, stringToTag, tagToString, toStringprotected HmtxTable(TrueTypeFont ttf)
public short getAdvance(int glyphID)
public short getLeftSideBearing(int glyphID)
public ByteBuffer getData()
getData in class TrueTypeTablepublic void setData(ByteBuffer data)
setData in class TrueTypeTablepublic int getLength()
getLength in class TrueTypeTableCopyright © 2024. All rights reserved.