org.foray.font.format.ttf
Class OTFLookupGSUBx04x01.Ligature

java.lang.Object
  extended by org.foray.font.format.ttf.OTFLookupGSUBx04x01.Ligature
Enclosing class:
OTFLookupGSUBx04x01

public class OTFLookupGSUBx04x01.Ligature
extends Object

One ligature.


Constructor Summary
OTFLookupGSUBx04x01.Ligature()
           
 
Method Summary
 int checkSubstitution(IntArrayBuilder glyphIndexes, int index)
          Checks this ligature to see if it matches the current position in a sequence of glyphIndexes, and if so, makes the substitution.
 char[] getComponents()
          Returns the array of component glyph indexes, starting with the second component (the first is in the Coverage table), and ordered according to the writing direction of the font.
 char getLigGlyph()
          Returns the glyph index of the ligature to substitute, i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OTFLookupGSUBx04x01.Ligature

public OTFLookupGSUBx04x01.Ligature()
Method Detail

getLigGlyph

public char getLigGlyph()
Returns the glyph index of the ligature to substitute, i.e. the output.

Returns:
The output glyph index.

getComponents

public char[] getComponents()
Returns the array of component glyph indexes, starting with the second component (the first is in the Coverage table), and ordered according to the writing direction of the font. For text written from left-to-right, the left-most glyph will be the first, and vice versa.

Returns:
The array of component glyph indexes.

checkSubstitution

public int checkSubstitution(IntArrayBuilder glyphIndexes,
                             int index)
Checks this ligature to see if it matches the current position in a sequence of glyphIndexes, and if so, makes the substitution.

Parameters:
glyphIndexes - The sequence of glyphe indexes being examined.
index - The index into glyphIndexes marking the current glyphs being compared.
Returns:
The number of glyphs that were deleted, if any. If a subsitution was made, the number of glyphs in this ligature. If no substitution was made, zero.


Copyright © 2017. All rights reserved.