Class GlyphSubstitutionTable.Ligature
java.lang.Object
org.apache.fop.complexscripts.fonts.GlyphSubstitutionTable.Ligature
- Enclosing class:
- GlyphSubstitutionTable
The
Ligature
class implements a ligature lookup result in terms of
a ligature glyph (code) and the N+1... components that comprise the ligature,
where the Nth component was consumed in the coverage table lookup mapping to
this ligature instance.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[]
int
int
boolean
matchesComponents
(int[] glyphs) Determine if input sequence at offset matches ligature's components.toString()
-
Field Details
-
ligature
private final int ligature -
components
private final int[] components
-
-
Constructor Details
-
Ligature
public Ligature(int ligature, int[] components) Instantiate a ligature.- Parameters:
ligature
- glyph idcomponents
- sequence of N+1... component glyph (or character) identifiers
-
-
Method Details
-
getLigature
public int getLigature()- Returns:
- ligature glyph id
-
getComponents
public int[] getComponents()- Returns:
- array of N+1... components
-
getNumComponents
public int getNumComponents()- Returns:
- components count
-
matchesComponents
public boolean matchesComponents(int[] glyphs) Determine if input sequence at offset matches ligature's components.- Parameters:
glyphs
- array of glyph components to match (including first, implied glyph)- Returns:
- true if matches
-
toString
-