public class GlyphTable extends TTFTable
Modifier and Type | Field and Description |
---|---|
static 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 String TAG
public void read(TrueTypeFont ttf, org.apache.fontbox.ttf.TTFDataStream data) throws IOException
ttf
- The font that is being read.data
- The stream to read the data from.IOException
- If there is an error reading the data.public GlyphData[] getGlyphs() throws IOException
IOException
public void setGlyphs(GlyphData[] glyphsValue)
glyphsValue
- The glyphs to set.public GlyphData getGlyph(int gid) throws IOException
gid
- GIDIOException
- if the font cannot be readCopyright © 2002–2017 The Apache Software Foundation. All rights reserved.