org.extex.font.format.xtf.tables.gps
Class XtfGPOSCursiveTable.CursiveTableFormat1

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

public static class XtfGPOSCursiveTable.CursiveTableFormat1
extends XtfGPOSCursiveTable
implements XMLWriterConvertible

CursivePosFormat1. The subtable has one format: CursivePosFormat1. It begins with a format identifier (PosFormat) and an offset to a Coverage table (Coverage), which lists all the glyphs that define cursive attachment data. In addition, the subtable contains one EntryExitRecord for each glyph listed in the Coverage table, a count of those records (EntryExitCount), and an array of those records in the same order as the Coverage Index (EntryExitRecord).

CursivePosFormat1 subtable: Cursive attachment

Value Type Description
uint16 PosFormat Format identifier-format = 1
Offset Coverage Offset to Coverage table-from beginning of CursivePos subtable
uint16 EntryExitCount Number of EntryExit records
struct EntryExitRecord[EntryExitCount] Array of EntryExit records-in Coverage Index order

Each EntryExitRecord consists of two offsets: one to an Anchor table that identifies the entry point on the glyph (EntryAnchor), and an offset to an Anchor table that identifies the exit point on the glyph (ExitAnchor). (For a complete description of the Anchor table, see the end of this chapter.)

To position glyphs using the CursivePosFormat1 subtable, a text-processing client aligns the ExitAnchor point of a glyph with the EntryAnchor point of the following glyph. If no corresponding anchor point exists, either the EntryAnchor or ExitAnchor offset may be NULL.

At the end of this chapter, Example 6 describes cursive glyph attachment in the Urdu language.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.extex.font.format.xtf.tables.gps.XtfGPOSCursiveTable
XtfGPOSCursiveTable.CursiveTableFormat1, XtfGPOSCursiveTable.EntryExitRecord
 
Field Summary
 
Fields inherited from class org.extex.font.format.xtf.tables.gps.XtfLookupTable
count
 
Method Summary
 void writeXML(XMLStreamWriter writer)
          Write the data to a XMLStreamWriter.
 
Methods inherited from class org.extex.font.format.xtf.tables.gps.XtfGPOSCursiveTable
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

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)