public class LocaTable 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 |
LocaTable(TrueTypeFont ttf)
Creates a new instance of HmtxTable
|
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer |
getData()
get the data in this map as a ByteBuffer
|
int |
getLength()
Get the length of this table
|
int |
getOffset(int glyphID)
get the offset, in bytes, of a given glyph from the start of
the glyph table
|
int |
getSize(int glyphID)
get the size, in bytes, of the given glyph
|
boolean |
isLongFormat()
Return true if the glyphs arte in long (int) format, or
false if they are in short (short) format
|
void |
setData(java.nio.ByteBuffer data)
Initialize this structure from a ByteBuffer
|
createTable, createTable, getTag, stringToTag, tagToString, toString
protected LocaTable(TrueTypeFont ttf)
public int getOffset(int glyphID)
public int getSize(int glyphID)
public boolean isLongFormat()
public java.nio.ByteBuffer getData()
getData
in class TrueTypeTable
public void setData(java.nio.ByteBuffer data)
setData
in class TrueTypeTable
public int getLength()
getLength
in class TrueTypeTable