com.sun.pdfview.font.ttf

Class HmtxTable

public class HmtxTable extends TrueTypeTable

Model the TrueType Post table
Constructor Summary
protected HmtxTable(TrueTypeFont ttf)
Creates a new instance of HmtxTable
Method Summary
shortgetAdvance(int glyphID)
get the advance of a given glyph
ByteBuffergetData()
get the data in this map as a ByteBuffer
shortgetLeftSideBearing(int glyphID)
get the left side bearing of a given glyph
intgetLength()
Get the length of this table
voidsetData(ByteBuffer data)
Initialize this structure from a ByteBuffer

Constructor Detail

HmtxTable

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

Method Detail

getAdvance

public short getAdvance(int glyphID)
get the advance of a given glyph

getData

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

getLeftSideBearing

public short getLeftSideBearing(int glyphID)
get the left side bearing of a given glyph

getLength

public int getLength()
Get the length of this table

setData

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