Package com.sun.pdfview.font.ttf
Class GlyfTable
- java.lang.Object
-
- com.sun.pdfview.font.ttf.TrueTypeTable
-
- com.sun.pdfview.font.ttf.GlyfTable
-
public class GlyfTable extends TrueTypeTable
Model the TrueType Glyf table
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Object[]glyphsthe glyph data, as either a byte buffer (unparsed) or a glyph object (parsed)private LocaTablelocaThe glyph location table-
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 protectedGlyfTable(TrueTypeFont ttf)Creates a new instance of HmtxTable
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffergetData()get the data in this map as a ByteBufferGlyfgetGlyph(int index)Get the glyph at a given index, parsing it as neededintgetLength()Get the length of this tablevoidsetData(java.nio.ByteBuffer data)Initialize this structure from a ByteBufferjava.lang.StringtoString()Create a pretty String-
Methods inherited from class com.sun.pdfview.font.ttf.TrueTypeTable
createTable, createTable, getTag, stringToTag, tagToString
-
-
-
-
Field Detail
-
glyphs
private java.lang.Object[] glyphs
the glyph data, as either a byte buffer (unparsed) or a glyph object (parsed)
-
loca
private LocaTable loca
The glyph location table
-
-
Constructor Detail
-
GlyfTable
protected GlyfTable(TrueTypeFont ttf)
Creates a new instance of HmtxTable
-
-
Method Detail
-
getGlyph
public Glyf getGlyph(int index)
Get the glyph at a given index, parsing it as needed
-
getData
public java.nio.ByteBuffer getData()
get the data in this map as a ByteBuffer- Overrides:
getDatain classTrueTypeTable
-
setData
public void setData(java.nio.ByteBuffer data)
Initialize this structure from a ByteBuffer- Overrides:
setDatain classTrueTypeTable
-
getLength
public int getLength()
Get the length of this table- Overrides:
getLengthin classTrueTypeTable
-
toString
public java.lang.String toString()
Create a pretty String- Overrides:
toStringin classTrueTypeTable
-
-