org.foray.font.format.ttf
Class OTFLookupGSUBx04x01

java.lang.Object
  extended by org.foray.font.format.ttf.OTFLookupGSUBSubtable
      extended by org.foray.font.format.ttf.OTFLookupGSUBx04x01

public class OTFLookupGSUBx04x01
extends OTFLookupGSUBSubtable

A Ligature Substitution Format 1 GSUB Subtable.


Nested Class Summary
 class OTFLookupGSUBx04x01.Ligature
          One ligature.
 class OTFLookupGSUBx04x01.LigatureSet
          A set of ligatures.
 
Constructor Summary
OTFLookupGSUBx04x01()
          Constructor.
 
Method Summary
protected  OTFCoverage getCoverage()
          Returns the coverage for this subtable.
protected  OTFLookupGSUBx04x01.LigatureSet[] getLigatureSets()
          Returns the ligatures sets for this subtable.
 void makeSubstitutions(IntArrayBuilder glyphIndexes, org.axsl.font.FontOptions options)
          Looks through the possible substitution in this font, and for those that the client wants, converts the glyph indexes for those subsitutions.
static OTFLookupGSUBx04x01 parse(RandomAccessInput raInput, int offset)
          Parses a lookup.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OTFLookupGSUBx04x01

public OTFLookupGSUBx04x01()
Constructor.

Method Detail

parse

public static OTFLookupGSUBx04x01 parse(RandomAccessInput raInput,
                                        int offset)
                                 throws IOException
Parses a lookup.

Parameters:
raInput - The input from which the subtable is being parsed.
offset - The offset in raInput for the start of the subtable.
Returns:
The parsed subtable instance.
Throws:
IOException - For I/O errors during parsing.

getCoverage

protected OTFCoverage getCoverage()
Returns the coverage for this subtable.

Returns:
The coverage.

getLigatureSets

protected OTFLookupGSUBx04x01.LigatureSet[] getLigatureSets()
Returns the ligatures sets for this subtable.

Returns:
The ligature sets.

makeSubstitutions

public void makeSubstitutions(IntArrayBuilder glyphIndexes,
                              org.axsl.font.FontOptions options)
Looks through the possible substitution in this font, and for those that the client wants, converts the glyph indexes for those subsitutions.

Parameters:
glyphIndexes - The glyph indexes for which substitutions are being considered.
options - The font options, such as ligatures and small-caps that should be used when computing the glyphs for this word.


Copyright © 2017. All rights reserved.