Package com.sun.pdfview.font.ttf
Class LocaTable
java.lang.Object
com.sun.pdfview.font.ttf.TrueTypeTable
com.sun.pdfview.font.ttf.LocaTable
Model the TrueType Loca table
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanif true, the table stores glyphs in long formatprivate int[]the offsets themselvesFields 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
ConstructorsModifierConstructorDescriptionprotectedLocaTable(TrueTypeFont ttf) Creates a new instance of HmtxTable -
Method Summary
Modifier and TypeMethodDescriptiongetData()get the data in this map as a ByteBufferintGet the length of this tableintgetOffset(int glyphID) get the offset, in bytes, of a given glyph from the start of the glyph tableintgetSize(int glyphID) get the size, in bytes, of the given glyphbooleanReturn true if the glyphs arte in long (int) format, or false if they are in short (short) formatvoidsetData(ByteBuffer data) Initialize this structure from a ByteBufferMethods inherited from class com.sun.pdfview.font.ttf.TrueTypeTable
createTable, createTable, getTag, stringToTag, tagToString, toString
-
Field Details
-
isLong
private boolean isLongif true, the table stores glyphs in long format -
offsets
private int[] offsetsthe offsets themselves
-
-
Constructor Details
-
LocaTable
Creates a new instance of HmtxTable
-
-
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 -
getData
get the data in this map as a ByteBuffer- Overrides:
getDatain classTrueTypeTable
-
setData
Initialize this structure from a ByteBuffer- Overrides:
setDatain classTrueTypeTable
-
getLength
public int getLength()Get the length of this table- Overrides:
getLengthin classTrueTypeTable
-