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

java.lang.Object
  extended by org.extex.font.format.xtf.tables.gps.CoverageTable
All Implemented Interfaces:
XMLWriterConvertible
Direct Known Subclasses:
CoverageTable1, CoverageTable2

public abstract class CoverageTable
extends java.lang.Object
implements XMLWriterConvertible

Class for a Coverage Table.

Each subtable (except an Extension LookupType subtable) in a lookup references a Coverage table (Coverage), which specifies all the glyphs affected by a substitution or positioning operation described in the subtable. The GSUB, GPOS, and GDEF tables rely on this notion of coverage. If a glyph does not appear in a Coverage table, the client can skip that subtable and move immediately to the next subtable.

A Coverage table identifies glyphs by glyph indices (GlyphIDs) either of two ways:

In a Coverage table, a format code (CoverageFormat) specifies the format as an integer: 1 = lists, and 2 = ranges.

A Coverage table defines a unique index value (Coverage Index) for each covered glyph. This unique value specifies the position of the covered glyph in the Coverage table. The client uses the Coverage Index to look up values in the subtable for each glyph.

Version:
$Revision: 7274 $
Author:
Michael Niedermair

Constructor Summary
protected CoverageTable(int format)
          Creates a new object.
 
Method Summary
 int getCoverageFormat()
          Getter for coverageFormat.
static CoverageTable getInstance(RandomAccessR rar, int baseoffset, int offset)
          Return a instance.
 
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
 

Constructor Detail

CoverageTable

protected CoverageTable(int format)
Creates a new object.

Parameters:
format - The format
Method Detail

getInstance

public static CoverageTable getInstance(RandomAccessR rar,
                                        int baseoffset,
                                        int offset)
                                 throws java.io.IOException
Return a instance.

Parameters:
rar - input
offset - The offset for the table.
baseoffset - The baseofset.
Returns:
TODO
Throws:
java.io.IOException - if a io-error occurred.

getCoverageFormat

public int getCoverageFormat()
Getter for coverageFormat.

Returns:
the coverageFormat