Package org.openpdf.renderer.font.ttf
Class GlyfTable
java.lang.Object
org.openpdf.renderer.font.ttf.TrueTypeTable
org.openpdf.renderer.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 LocaTableThe glyph location tableFields inherited from class org.openpdf.renderer.font.ttf.TrueTypeTable
CMAP_TABLE, GLYF_TABLE, HEAD_TABLE, HHEA_TABLE, HMTX_TABLE, LOCA_TABLE, MAXP_TABLE, NAME_TABLE, POST_TABLE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGlyfTable(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 neededintGet the length of this tablevoidsetData(ByteBuffer data) Initialize this structure from a ByteBuffertoString()Create a pretty StringMethods inherited from class org.openpdf.renderer.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:
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
-
toString
Create a pretty String- Overrides:
toStringin classTrueTypeTable
-