Package com.sun.pdfview.font.ttf
Class LocaTable
- java.lang.Object
-
- com.sun.pdfview.font.ttf.TrueTypeTable
-
- com.sun.pdfview.font.ttf.LocaTable
-
public class LocaTable extends TrueTypeTable
Model the TrueType Loca table
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
isLong
if true, the table stores glyphs in long formatprivate int[]
offsets
the offsets themselves-
Fields inherited from class com.sun.pdfview.font.ttf.TrueTypeTable
CMAP_TABLE, GLYF_TABLE, HEAD_TABLE, HHEA_TABLE, HMTX_TABLE, LOCA_TABLE, MAXP_TABLE, NAME_TABLE, POST_TABLE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
LocaTable(TrueTypeFont ttf)
Creates a new instance of HmtxTable
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffer
getData()
get the data in this map as a ByteBufferint
getLength()
Get the length of this tableint
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
isLongFormat()
Return true if the glyphs arte in long (int) format, or false if they are in short (short) formatvoid
setData(java.nio.ByteBuffer data)
Initialize this structure from a ByteBuffer-
Methods inherited from class com.sun.pdfview.font.ttf.TrueTypeTable
createTable, createTable, getTag, stringToTag, tagToString, toString
-
-
-
-
Constructor Detail
-
LocaTable
protected LocaTable(TrueTypeFont ttf)
Creates a new instance of HmtxTable
-
-
Method Detail
-
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
-
getData
public java.nio.ByteBuffer getData()
get the data in this map as a ByteBuffer- Overrides:
getData
in classTrueTypeTable
-
setData
public void setData(java.nio.ByteBuffer data)
Initialize this structure from a ByteBuffer- Overrides:
setData
in classTrueTypeTable
-
getLength
public int getLength()
Get the length of this table- Overrides:
getLength
in classTrueTypeTable
-
-