Class LocaTable
java.lang.Object
org.loboevolution.pdfview.font.ttf.TrueTypeTable
org.loboevolution.pdfview.font.ttf.LocaTable
Model the TrueType Loca table
-
Field Summary
Fields inherited from class org.loboevolution.pdfview.font.ttf.TrueTypeTable
CMAP_TABLE, GLYF_TABLE, HEAD_TABLE, HHEA_TABLE, HMTX_TABLE, LOCA_TABLE, MAXP_TABLE, NAME_TABLE, POST_TABLE
-
Constructor Summary
ModifierConstructorDescriptionprotected
LocaTable
(TrueTypeFont ttf) Creates a new instance of HmtxTable -
Method Summary
Modifier and TypeMethodDescriptiongetData()
int
Get the size of the table, in bytesint
getOffset
(int glyphID) get the offset, in bytes, of a given glyph from the start of the glyph tableint
getSize
(int glyphID) get the size, in bytes, of the given glyphboolean
Return true if the glyphs arte in long (int) format, or false if they are in short (short) formatvoid
setData
(ByteBuffer data) Methods inherited from class org.loboevolution.pdfview.font.ttf.TrueTypeTable
createTable, createTable, stringToTag, tagToString, toString
-
Constructor Details
-
LocaTable
Creates a new instance of HmtxTable- Parameters:
ttf
- aTrueTypeFont
object.
-
-
Method Details
-
getOffset
public int getOffset(int glyphID) get the offset, in bytes, of a given glyph from the start of the glyph table -
getSize
public int getSize(int glyphID) get the size, in bytes, of the given glyph -
isLongFormat
public boolean isLongFormat()Return true if the glyphs arte in long (int) format, or false if they are in short (short) format- Returns:
- a boolean.
-
getData
get the data in this map as a ByteBuffer
-
setData
Initialize this structure from a ByteBuffer
-
getLength
public int getLength()Get the size of the table, in bytesGet the length of this table
- Overrides:
getLength
in classTrueTypeTable
- Returns:
- a
Integer
object.
-