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

java.lang.Object
  extended by org.extex.font.format.xtf.tables.gps.XtfLookupTable
      extended by org.extex.font.format.xtf.tables.gps.XtfGSUBSingleTable
All Implemented Interfaces:
XMLWriterConvertible
Direct Known Subclasses:
XtfGSUBSingleTable.SingleTableFormat1, XtfGSUBSingleTable.SingleTableFormat2

public abstract class XtfGSUBSingleTable
extends XtfLookupTable

SingleTable.

Single substitution (SingleSubst) subtables tell a client to replace a single glyph with another glyph.

Version:
$Revision: 6604 $
Author:
Michael Niedermair

Nested Class Summary
static class XtfGSUBSingleTable.SingleTableFormat1
          SingleTable for format 1.
static class XtfGSUBSingleTable.SingleTableFormat2
          SingleTable for format 2.
 
Field Summary
 
Fields inherited from class org.extex.font.format.xtf.tables.gps.XtfLookupTable
count
 
Method Summary
abstract  java.lang.String[][] getSubGlyph()
          Returns an array with the in/out glyph.
static XtfGSUBSingleTable newInstance(RandomAccessR rar, int offset, XtfGlyphName xtfGlyph)
          Create a new Instance.
abstract  int substitute(int glyphId)
          Returns the substitute.
 
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
 
Methods inherited from interface org.extex.util.xml.XMLWriterConvertible
writeXML
 

Method Detail

newInstance

public static XtfGSUBSingleTable newInstance(RandomAccessR rar,
                                             int offset,
                                             XtfGlyphName xtfGlyph)
                                      throws java.io.IOException
Create a new Instance.

Parameters:
rar - the input
offset - the offset
xtfGlyph - The glyph name.
Returns:
Returns the new instance.
Throws:
java.io.IOException - if an IO-error occurs

getSubGlyph

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

Special for the test case

Returns:
Returns an array with the in/out glyph.

substitute

public abstract int substitute(int glyphId)
Returns the substitute.

Parameters:
glyphId - the glyph id
Returns:
Returns the substitute.