Class GlyfTable
java.lang.Object
org.loboevolution.pdfview.font.ttf.TrueTypeTable
org.loboevolution.pdfview.font.ttf.GlyfTable
Model the TrueType Glyf 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
GlyfTable
(TrueTypeFont ttf) Creates a new instance of HmtxTable -
Method Summary
Modifier and TypeMethodDescriptiongetData()
getGlyph
(int index) Get the glyph at a given index, parsing it as neededint
Get the size of the table, in bytesvoid
setData
(ByteBuffer data) toString()
Methods inherited from class org.loboevolution.pdfview.font.ttf.TrueTypeTable
createTable, createTable, stringToTag, tagToString
-
Constructor Details
-
GlyfTable
Creates a new instance of HmtxTable- Parameters:
ttf
- aTrueTypeFont
object.
-
-
Method Details
-
getGlyph
Get the glyph at a given index, parsing it as needed -
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.
-
toString
Put into a nice string
Create a pretty String
- Overrides:
toString
in classTrueTypeTable
-