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()
Gets the length of the context glyph sequence defined by this rule
|
SubstLookupRecord[] |
getSubstLookupRecords()
Retrieves the substitution lookup records.
|
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()
ContextualRule
getContextLength in class ContextualRule
public SubstLookupRecord[] getSubstLookupRecords()
ContextualSubstRule
getSubstLookupRecords in class ContextualSubstRule
SubstLookupRecord.
public boolean isGlyphMatchesInput(int glyphId,
int atIdx)
ContextualRule
isGlyphMatchesInput in class ContextualRule
glyphId - glyph code id
atIdx - index in the rule sequence. Shall be: 0 < atIdx < ContextualRule.getContextLength()
true if glyph matches element
Copyright © 1998–2021 iText Group NV. All rights reserved.