org.apache.fontbox.ttf
Class GlyphTable

java.lang.Object
  extended by org.apache.fontbox.ttf.TTFTable
      extended by org.apache.fontbox.ttf.GlyphTable

public class GlyphTable
extends TTFTable

A table in a true type font.

Version:
$Revision: 1.1 $
Author:
Ben Litchfield (ben@benlitchfield.com)

Field Summary
static java.lang.String TAG
          Tag to identify this table.
 
Constructor Summary
GlyphTable()
           
 
Method Summary
 GlyphData[] getGlyphs()
           
 void initData(TrueTypeFont ttf, TTFDataStream data)
          This will read the required data from the stream.
 void setGlyphs(GlyphData[] glyphsValue)
           
 
Methods inherited from class org.apache.fontbox.ttf.TTFTable
getCheckSum, getLength, getOffset, getTag, setCheckSum, setLength, setOffset, setTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG

public static final java.lang.String TAG
Tag to identify this table.

See Also:
Constant Field Values
Constructor Detail

GlyphTable

public GlyphTable()
Method Detail

initData

public void initData(TrueTypeFont ttf,
                     TTFDataStream data)
              throws java.io.IOException
This will read the required data from the stream.

Overrides:
initData in class TTFTable
Parameters:
ttf - The font that is being read.
data - The stream to read the data from.
Throws:
java.io.IOException - If there is an error reading the data.

getGlyphs

public GlyphData[] getGlyphs()
Returns:
Returns the glyphs.

setGlyphs

public void setGlyphs(GlyphData[] glyphsValue)
Parameters:
glyphsValue - The glyphs to set.


Copyright © 2008-2011 Apache Software Foundation. All Rights Reserved.