org.extex.font.format.xtf.tables
Class TtfTableGLYF

java.lang.Object
  extended by org.extex.font.format.xtf.tables.AbstractXtfTable
      extended by org.extex.font.format.xtf.tables.TtfTableGLYF
All Implemented Interfaces:
XtfGlyphName, XtfTable, XMLWriterConvertible

public class TtfTableGLYF
extends AbstractXtfTable
implements XtfTable, XMLWriterConvertible

The 'glyf' table contains the data that defines the appearance of the glyphs in the font. This includes specification of the points that describe the contours that make up a glyph outline and the instructions that grid-fit that glyph. The 'glyf' table supports the definition of simple glyphs and compound glyphs, that is, glyphs that are made up of other glyphs.

Type Name Description
SHORT numberOfContours If the number of contours is greater than or equal to zero, this is a single glyph; if negative, this is a composite glyph.
FWord xMin Minimum x for coordinate data.
FWord yMin Minimum y for coordinate data.
FWord xMax Maximum x for coordinate data.
FWord yMax Maximum y for coordinate data.

Version:
$Revision: 6604 $
Author:
Michael Niedermair

Nested Class Summary
static class TtfTableGLYF.CompositeComp
          Composite comp
 class TtfTableGLYF.CompositeDescript
           Compound glyphs are glyphs made up of two or more component glyphs.
static class TtfTableGLYF.Descript
          Simple Glyph Description.
 class TtfTableGLYF.SimpleDescript
          SimleDescript.
 
Constructor Summary
TtfTableGLYF(XtfTableMap tablemap, XtfTableDirectory.Entry de, RandomAccessR rar)
          Create a new object.
 
Method Summary
 TtfTableGLYF.Descript getDescription(int i)
          Returns the description
 int getInitOrder()
          Returns a order number to sort the tables for the init process.
 java.lang.String getShortcut()
          Returns the table shortcut.
 int getType()
          Get the table type, as a table directory value.
 void init()
          Initialize the table.
 void writeXML(XMLStreamWriter writer)
          Write the data to a XMLStreamWriter.
 
Methods inherited from class org.extex.font.format.xtf.tables.AbstractXtfTable
getGlyphName, getTableMap, writeStartElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.extex.font.format.xtf.tables.XtfTable
getTableMap
 

Constructor Detail

TtfTableGLYF

public TtfTableGLYF(XtfTableMap tablemap,
                    XtfTableDirectory.Entry de,
                    RandomAccessR rar)
             throws java.io.IOException
Create a new object.

Parameters:
tablemap - the tablemap
de - directory entry
rar - the RandomAccessInput
Throws:
java.io.IOException - if an error occured
Method Detail

getDescription

public TtfTableGLYF.Descript getDescription(int i)
Returns the description

Parameters:
i - index
Returns:
Returns the description

getInitOrder

public int getInitOrder()
Returns a order number to sort the tables for the init process.

Specified by:
getInitOrder in interface XtfTable
Overrides:
getInitOrder in class AbstractXtfTable
Returns:
Returns the order number.
See Also:
AbstractXtfTable.getInitOrder()

getShortcut

public java.lang.String getShortcut()
Returns the table shortcut.

Specified by:
getShortcut in interface XtfTable
Returns:
Returns the table shortcut.
See Also:
XtfTable.getShortcut()

getType

public int getType()
Get the table type, as a table directory value.

Specified by:
getType in interface XtfTable
Returns:
Returns the table type

init

public void init()
Initialize the table.

Specified by:
init in interface XtfTable
Overrides:
init in class AbstractXtfTable
See Also:
AbstractXtfTable.init()

writeXML

public void writeXML(XMLStreamWriter writer)
              throws java.io.IOException
Write the data to a XMLStreamWriter.

Specified by:
writeXML in interface XMLWriterConvertible
Parameters:
writer - the XML-Writer
Throws:
java.io.IOException - if an IO-error occurs.
See Also:
XMLWriterConvertible.writeXML(org.extex.util.xml.XMLStreamWriter)