com.sun.pdfview.font.ttf

Class LocaTable

public class LocaTable extends TrueTypeTable

Model the TrueType Loca table
Constructor Summary
protected LocaTable(TrueTypeFont ttf)
Creates a new instance of HmtxTable
Method Summary
ByteBuffergetData()
get the data in this map as a ByteBuffer
intgetLength()
Get the length of this table
intgetOffset(int glyphID)
get the offset, in bytes, of a given glyph from the start of the glyph table
intgetSize(int glyphID)
get the size, in bytes, of the given glyph
booleanisLongFormat()
Return true if the glyphs arte in long (int) format, or false if they are in short (short) format
voidsetData(ByteBuffer data)
Initialize this structure from a ByteBuffer

Constructor Detail

LocaTable

protected LocaTable(TrueTypeFont ttf)
Creates a new instance of HmtxTable

Method Detail

getData

public ByteBuffer getData()
get the data in this map as a ByteBuffer

getLength

public int getLength()
Get the length of this table

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

setData

public void setData(ByteBuffer data)
Initialize this structure from a ByteBuffer