public final class LocaTable extends Table
Modifier and Type | Class and Description |
---|---|
static class |
LocaTable.Builder
Builder for a loca table.
|
Modifier and Type | Method and Description |
---|---|
FontHeaderTable.IndexToLocFormat |
formatVersion()
Get the table version.
|
int |
glyphLength(int glyphId)
Get the length of the data in the glyph table for the specified glyph id.
|
int |
glyphOffset(int glyphId)
Return the offset for the given glyph id.
|
int |
loca(int index)
Get the value from the loca table for the index specified.
|
int |
numGlyphs() |
int |
numLocas()
Get the number of locations or locas.
|
calculatedChecksum, header, headerChecksum, headerLength, headerOffset, headerTag, toString
dataLength, readFontData, serialize
public FontHeaderTable.IndexToLocFormat formatVersion()
public int numGlyphs()
public int glyphOffset(int glyphId)
glyphId
- the glyph id to get the offset for; must be less than or
equal to one more than the number of glyph idspublic int glyphLength(int glyphId)
glyphId
- the glyph id to get the offset for; must be greater than or
equal to 0 and less than the number of glyphs in the fontpublic int numLocas()
public int loca(int index)
index
- the loca table index