org.extex.font.format.xtf.tables.gps
Class XtfGSUBSingleTable.SingleTableFormat1
java.lang.Object
org.extex.font.format.xtf.tables.gps.XtfLookupTable
org.extex.font.format.xtf.tables.gps.XtfGSUBSingleTable
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)