org.extex.font.format.xtf.tables.gps
Class XtfGSUBSingleTable.SingleTableFormat1

java.lang.Object
  extended by org.extex.font.format.xtf.tables.gps.XtfLookupTable
      extended by org.extex.font.format.xtf.tables.gps.XtfGSUBSingleTable
          extended by org.extex.font.format.xtf.tables.gps.XtfGSUBSingleTable.SingleTableFormat1
All Implemented Interfaces:
XMLWriterConvertible
Enclosing class:
XtfGSUBSingleTable

public static class XtfGSUBSingleTable.SingleTableFormat1
extends XtfGSUBSingleTable

SingleTable for format 1.

Format 1 calculates the indices of the output glyphs, which are not explicitly defined in the subtable. To calculate an output glyph index, Format 1 adds a constant delta value to the input glyph index. For the substitutions to occur properly, the glyph indices in the input and output ranges must be in the same order. This format does not use the Coverage Index that is returned from the Coverage table. The SingleSubstFormat1 subtable begins with a format identifier (SubstFormat) of 1. An offset references a Coverage table that specifies the indices of the input glyphs.

DeltaGlyphID is the constant value added to each input glyph index to calculate the index of the corresponding output glyph.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.extex.font.format.xtf.tables.gps.XtfGSUBSingleTable
XtfGSUBSingleTable.SingleTableFormat1, XtfGSUBSingleTable.SingleTableFormat2
 
Field Summary
 
Fields inherited from class org.extex.font.format.xtf.tables.gps.XtfLookupTable
count
 
Method Summary
 java.lang.String[][] getSubGlyph()
          Returns an array with the in/out glyph.
 int substitute(int glyphId)
          Returns the substitute.
 void writeXML(XMLStreamWriter writer)
          Write the data to a XMLStreamWriter.
 
Methods inherited from class org.extex.font.format.xtf.tables.gps.XtfGSUBSingleTable
newInstance
 
Methods inherited from class org.extex.font.format.xtf.tables.gps.XtfLookupTable
getCount, getFormat, getXtfGlyph
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSubGlyph

public java.lang.String[][] getSubGlyph()
Returns an array with the in/out glyph.

Special for the test case

Specified by:
getSubGlyph in class XtfGSUBSingleTable
Returns:
Returns an array with the in/out glyph.
See Also:
XtfGSUBSingleTable.getSubGlyph()

substitute

public int substitute(int glyphId)
Returns the substitute.

Specified by:
substitute in class XtfGSUBSingleTable
Parameters:
glyphId - the glyph id
Returns:
Returns the substitute.
See Also:
XtfGSUBSingleTable.substitute(int)

writeXML

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

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