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

java.lang.Object
  extended by org.extex.font.format.xtf.tables.gps.XtfLookupList
All Implemented Interfaces:
XMLWriterConvertible

public class XtfLookupList
extends java.lang.Object
implements XMLWriterConvertible

List for all LookupTables.

lookup list table

The headers of the GSUB and GPOS tables contain offsets to Lookup List tables (LookupList) for glyph substitution (GSUB table) and glyph positioning (GPOS table). The LookupList table contains an array of offsets to Lookup tables (Lookup). The font developer defines the Lookup sequence in the Lookup array to control the order in which a text-processing client applies lookup data to glyph substitution and positioning operations. LookupCount specifies the total number of Lookup table offsets in the array.

Type Name Description
uint16 LookupCount Number of lookups in this table
Offset Lookup[LookupCount] Array of offsets to Lookup tables-from beginning of LookupList -zero based (first lookup is Lookup index = 0)

Version:
$Revision: 6679 $
Author:
Michael Niedermair

Constructor Summary
XtfLookupList(RandomAccessR rar, int posOffset, int offset, LookupTableFactory lookupFactory, XtfGlyphName xtfGlyph)
          Create a new object
 
Method Summary
 XtfLookup getLookup(int index)
          Returns the lookup od null, if not exists.
 XtfLookup getLookup(XtfFeatureList.Feature feature, int index)
          Returns the lookup
 int getLookupCount()
          Returns the lookupCount.
 int[] getLookupOffsets()
          Returns the lookupOffsets.
 XtfLookup[] getLookups()
          Returns the lookups.
 java.lang.String toString()
          Returns the info for this class
 void writeXML(XMLStreamWriter writer)
          Write the data to a XMLStreamWriter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XtfLookupList

public XtfLookupList(RandomAccessR rar,
                     int posOffset,
                     int offset,
                     LookupTableFactory lookupFactory,
                     XtfGlyphName xtfGlyph)
              throws java.io.IOException
Create a new object

Parameters:
rar - The input.
offset - The offset.
posOffset - The offset of the pos table (GPOS, GSUB).
lookupFactory - The factory for the lookup table.
xtfGlyph - The glyph name.
Throws:
java.io.IOException - if an IO-error occurs
Method Detail

getLookup

public XtfLookup getLookup(int index)
Returns the lookup od null, if not exists.

Parameters:
index - The index.
Returns:
Returns the lookup.

getLookup

public XtfLookup getLookup(XtfFeatureList.Feature feature,
                           int index)
Returns the lookup

Parameters:
feature - feature
index - index
Returns:
Returns the lookup

getLookupCount

public int getLookupCount()
Returns the lookupCount.

Returns:
Returns the lookupCount.

getLookupOffsets

public int[] getLookupOffsets()
Returns the lookupOffsets.

Returns:
Returns the lookupOffsets.

getLookups

public XtfLookup[] getLookups()
Returns the lookups.

Returns:
Returns the lookups.

toString

public java.lang.String toString()
Returns the info for this class

Overrides:
toString in class java.lang.Object
Returns:
Returns the info for this class

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)