Package com.sun.pdfview.font.ttf
Class GlyfTable
java.lang.Object
com.sun.pdfview.font.ttf.TrueTypeTable
com.sun.pdfview.font.ttf.GlyfTable
Model the TrueType Glyf table
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Object[]
the glyph data, as either a byte buffer (unparsed) or a glyph object (parsed)private LocaTable
The glyph location tableFields 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
ConstructorsModifierConstructorDescriptionprotected
GlyfTable
(TrueTypeFont ttf) Creates a new instance of HmtxTable -
Method Summary
Modifier and TypeMethodDescriptiongetData()
get the data in this map as a ByteBuffergetGlyph
(int index) Get the glyph at a given index, parsing it as neededint
Get the length of this tablevoid
setData
(ByteBuffer data) Initialize this structure from a ByteBuffertoString()
Create a pretty StringMethods inherited from class com.sun.pdfview.font.ttf.TrueTypeTable
createTable, createTable, getTag, stringToTag, tagToString
-
Field Details
-
glyphs
the glyph data, as either a byte buffer (unparsed) or a glyph object (parsed) -
loca
The glyph location table
-
-
Constructor Details
-
GlyfTable
Creates a new instance of HmtxTable
-
-
Method Details
-
getGlyph
Get the glyph at a given index, parsing it as needed -
getData
get the data in this map as a ByteBuffer- Overrides:
getData
in classTrueTypeTable
-
setData
Initialize this structure from a ByteBuffer- Overrides:
setData
in classTrueTypeTable
-
getLength
public int getLength()Get the length of this table- Overrides:
getLength
in classTrueTypeTable
-
toString
Create a pretty String- Overrides:
toString
in classTrueTypeTable
-