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

java.lang.Object
  extended by org.extex.font.format.xtf.tables.gps.XtfLookupTable
      extended by org.extex.font.format.xtf.tables.gps.XtfGPOSSingleTable
All Implemented Interfaces:
XMLWriterConvertible
Direct Known Subclasses:
XtfGPOSSingleTable.SingleTableFormat1, XtfGPOSSingleTable.SingleTableFormat2

public abstract class XtfGPOSSingleTable
extends XtfLookupTable

The GPOS table Single.

Lookup Type 1: Single Adjustment Positioning Subtable

A single adjustment positioning subtable (SinglePos) is used to adjust the position of a single glyph, such as a subscript or superscript. In addition, a SinglePos subtable is commonly used to implement lookup data for contextual positioning.

A SinglePos subtable will have one of two formats: one that applies the same adjustment to a series of glyphs, or one that applies a different adjustment for each unique glyph.

Version:
$Revision: 6737 $
Author:
Michael Niedermair

Nested Class Summary
static class XtfGPOSSingleTable.SingleTableFormat1
          SingleTable for format 1.
static class XtfGPOSSingleTable.SingleTableFormat2
           Single Adjustment Positioning: Format 2
 
Field Summary
protected  XtfCoverage coverage
          coverage
 
Fields inherited from class org.extex.font.format.xtf.tables.gps.XtfLookupTable
count
 
Method Summary
 XtfCoverage getCoverage()
          Getter for coverage.
abstract  ValueRecord getValueRecord(int glyph)
          Returns the ValueRecord for the glyph.
static XtfGPOSSingleTable newInstance(RandomAccessR rar, int posOffset, int offset, XtfGlyphName xtfGlyp)
          Create a new Instance.
 
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
 
Methods inherited from interface org.extex.util.xml.XMLWriterConvertible
writeXML
 

Field Detail

coverage

protected XtfCoverage coverage
coverage

Method Detail

newInstance

public static XtfGPOSSingleTable newInstance(RandomAccessR rar,
                                             int posOffset,
                                             int offset,
                                             XtfGlyphName xtfGlyp)
                                      throws java.io.IOException
Create a new Instance.

Parameters:
rar - the input
posOffset - The offset of the pos table (GPOS).
offset - the offset
xtfGlyp - The glyph name.
Returns:
Returns the new instance.
Throws:
java.io.IOException - if an IO-error occurs

getCoverage

public XtfCoverage getCoverage()
Getter for coverage.

Returns:
the coverage

getValueRecord

public abstract ValueRecord getValueRecord(int glyph)
Returns the ValueRecord for the glyph.

Parameters:
glyph - The glyph.
Returns:
Returns the ValueRecord for the glyph or null, if not found.