org.extex.font.format.xtf.tables.gps
Interface LookupTableFactory

All Known Implementing Classes:
AbstractXtfSFLTable, OtfTableGPOS, OtfTableGSUB

public interface LookupTableFactory

Interface for a Lookup table factory.

Version:
$Revision: 6679 $
Author:
Michael Niedermair

Method Summary
 java.lang.String lookupType(int type)
          Returns the name of the lookup type (The start index is 1!).
 XtfLookupTable read(RandomAccessR rar, int posOffset, int type, int offset, XtfGlyphName xtfGlyph)
          Read the LookupTable or null, if not found.
 

Method Detail

lookupType

java.lang.String lookupType(int type)
Returns the name of the lookup type (The start index is 1!).

Parameters:
type - The type.
Returns:
Returns the name of the lookup type.

read

XtfLookupTable read(RandomAccessR rar,
                    int posOffset,
                    int type,
                    int offset,
                    XtfGlyphName xtfGlyph)
                    throws java.io.IOException
Read the LookupTable or null, if not found.

Type:

  • 1 - Single - Replace one glyph with one glyph
  • 2 - Multiple - Replace one glyph with more than one glyph
  • 3 - Alternate - Replace one glyph with one of many glyphs
  • 4 - Ligature - Replace multiple glyphs with one glyph
  • 5 - Context - Replace one or more glyphs in context
  • 6 - Chaining - Context Replace one or more glyphs in chained context
  • Parameters:
    rar - The input.
    posOffset - The offset of the pos table (GPOS, GSUB).
    type - The table type.
    offset - The offset.
    xtfGlyph - The glyph name.
    Returns:
    Returns the table.
    Throws:
    java.io.IOException - if a io-error occurred.