public static class SubTableLookup5Format2.SubstRuleFormat2 extends ContextualSubstRule
| Constructor and Description |
|---|
SubstRuleFormat2(SubTableLookup5Format2 subTable, int[] inputClassIds, SubstLookupRecord[] substLookupRecords) |
| Modifier and Type | Method and Description |
|---|---|
int |
getContextLength() |
SubstLookupRecord[] |
getSubstLookupRecords() |
boolean |
isGlyphMatchesInput(int glyphId, int atIdx)
Checks if glyph line element matches element from input sequence of the rule.
|
getBacktrackContextLength, getLookaheadContextLength, isGlyphMatchesBacktrack, isGlyphMatchesLookaheadpublic SubstRuleFormat2(SubTableLookup5Format2 subTable, int[] inputClassIds, SubstLookupRecord[] substLookupRecords)
public int getContextLength()
getContextLength in class ContextualSubstRule
public SubstLookupRecord[] getSubstLookupRecords()
getSubstLookupRecords in class ContextualSubstRule
SubstLookupRecord. Each record specifies a position in the context glyph sequence and a LookupListIndex to the substitution lookup that is applied at that position.
public boolean isGlyphMatchesInput(int glyphId,
int atIdx)
ContextualSubstRule
isGlyphMatchesInput in class ContextualSubstRule
atIdx - index in the rule sequence. Shall be: 0 < atIdx < ContextualSubstRule.getContextLength().
Copyright © 1998–2018 iText Group NV. All rights reserved.