public class GlyphTable extends TTFTable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG
Tag to identify this table.
|
font, initialized
Modifier and Type | Method and Description |
---|---|
GlyphData |
getGlyph(int gid)
Returns the data for the glyph with the given GID.
|
GlyphData[] |
getGlyphs()
Returns all glyphs.
|
void |
read(TrueTypeFont ttf,
org.apache.fontbox.ttf.TTFDataStream data)
This will read the required data from the stream.
|
void |
setGlyphs(GlyphData[] glyphsValue) |
getCheckSum, getInitialized, getLength, getOffset, getTag
public static final java.lang.String TAG
public void read(TrueTypeFont ttf, org.apache.fontbox.ttf.TTFDataStream data) throws java.io.IOException
ttf
- The font that is being read.data
- The stream to read the data from.java.io.IOException
- If there is an error reading the data.public GlyphData[] getGlyphs() throws java.io.IOException
java.io.IOException
public void setGlyphs(GlyphData[] glyphsValue)
glyphsValue
- The glyphs to set.public GlyphData getGlyph(int gid) throws java.io.IOException
gid
- GIDjava.io.IOException
- if the font cannot be read