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 |
|---|---|
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(ByteBuffer data)
Initialize this structure from a ByteBuffer
|
createTable, createTable, getTag, stringToTag, tagToString, toStringprotected LocaTable(TrueTypeFont ttf)
public int getOffset(int glyphID)
public int getSize(int glyphID)
public boolean isLongFormat()
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.