|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.font.format.xtf.tables.gps.XtfLookupTable
org.extex.font.format.xtf.tables.gps.XtfGSUBSingleTable
org.extex.font.format.xtf.tables.gps.XtfGSUBSingleTable.SingleTableFormat2
public static class XtfGSUBSingleTable.SingleTableFormat2
SingleTable for format 2.
Format 2 is more flexible than Format 1, but requires more space. It provides an array of output glyph indices (Substitute) explicitly matched to the input glyph indices specified in the Coverage table.
The SingleSubstFormat2 subtable specifies a format identifier (SubstFormat), an offset to a Coverage table that defines the input glyph indices, a count of output glyph indices in the Substitute array (GlyphCount), and a list of the output glyph indices in the Substitute array (Substitute).
The Substitute array must contain the same number of glyph indices as the Coverage table. To locate the corresponding output glyph index in the Substitute array, this format uses the Coverage Index returned from the Coverage table.
| 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 |
|---|
public java.lang.String[][] getSubGlyph()
Special for the test case
getSubGlyph in class XtfGSUBSingleTableXtfGSUBSingleTable.getSubGlyph()public int substitute(int glyphId)
substitute in class XtfGSUBSingleTableglyphId - the glyph id
XtfGSUBSingleTable.substitute(int)
public void writeXML(XMLStreamWriter writer)
throws java.io.IOException
writer - the XML-Writer
java.io.IOException - if an IO-error occurs.XMLWriterConvertible.writeXML(org.extex.util.xml.XMLStreamWriter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||