Class SubTableLookup6Format3.SubstRuleFormat3
- java.lang.Object
-
- com.itextpdf.io.font.otf.ContextualRule
-
- com.itextpdf.io.font.otf.ContextualSubstRule
-
- com.itextpdf.io.font.otf.lookuptype6.SubTableLookup6Format3.SubstRuleFormat3
-
- Enclosing class:
- SubTableLookup6Format3
public static class SubTableLookup6Format3.SubstRuleFormat3 extends ContextualSubstRule
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<java.util.Set<java.lang.Integer>>backtrackCoverages(package private) java.util.List<java.util.Set<java.lang.Integer>>inputCoverages(package private) java.util.List<java.util.Set<java.lang.Integer>>lookaheadCoverages(package private) SubstLookupRecord[]substLookupRecords
-
Constructor Summary
Constructors Constructor Description SubstRuleFormat3(java.util.List<java.util.Set<java.lang.Integer>> backtrackCoverages, java.util.List<java.util.Set<java.lang.Integer>> inputCoverages, java.util.List<java.util.Set<java.lang.Integer>> lookaheadCoverages, SubstLookupRecord[] substLookupRecords)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBacktrackContextLength()Gets the length of the backtrack context glyph sequence defined by this ruleintgetContextLength()Gets the length of the context glyph sequence defined by this ruleintgetLookaheadContextLength()Gets the length of the lookahead context glyph sequence defined by this ruleSubstLookupRecord[]getSubstLookupRecords()Retrieves the substitution lookup records.booleanisGlyphMatchesBacktrack(int glyphId, int atIdx)Checks if glyph line element matches element from backtrack sequence of the rule.booleanisGlyphMatchesInput(int glyphId, int atIdx)Checks if glyph line element matches element from input sequence of the rule.booleanisGlyphMatchesLookahead(int glyphId, int atIdx)Checks if glyph line element matches element from lookahead sequence of the rule.
-
-
-
Field Detail
-
backtrackCoverages
java.util.List<java.util.Set<java.lang.Integer>> backtrackCoverages
-
inputCoverages
java.util.List<java.util.Set<java.lang.Integer>> inputCoverages
-
lookaheadCoverages
java.util.List<java.util.Set<java.lang.Integer>> lookaheadCoverages
-
substLookupRecords
SubstLookupRecord[] substLookupRecords
-
-
Constructor Detail
-
SubstRuleFormat3
public SubstRuleFormat3(java.util.List<java.util.Set<java.lang.Integer>> backtrackCoverages, java.util.List<java.util.Set<java.lang.Integer>> inputCoverages, java.util.List<java.util.Set<java.lang.Integer>> lookaheadCoverages, SubstLookupRecord[] substLookupRecords)
-
-
Method Detail
-
getContextLength
public int getContextLength()
Description copied from class:ContextualRuleGets the length of the context glyph sequence defined by this rule- Specified by:
getContextLengthin classContextualRule- Returns:
- length of the context
-
getLookaheadContextLength
public int getLookaheadContextLength()
Description copied from class:ContextualRuleGets the length of the lookahead context glyph sequence defined by this rule- Overrides:
getLookaheadContextLengthin classContextualRule- Returns:
- length of the lookahead context
-
getBacktrackContextLength
public int getBacktrackContextLength()
Description copied from class:ContextualRuleGets the length of the backtrack context glyph sequence defined by this rule- Overrides:
getBacktrackContextLengthin classContextualRule- Returns:
- length of the backtrack context
-
getSubstLookupRecords
public SubstLookupRecord[] getSubstLookupRecords()
Description copied from class:ContextualSubstRuleRetrieves the substitution lookup records. Each record specifies a position in the context glyph sequence and a LookupListIndex to the substitution lookup that is applied at that position.- Specified by:
getSubstLookupRecordsin classContextualSubstRule- Returns:
- an array of
SubstLookupRecord.
-
isGlyphMatchesInput
public boolean isGlyphMatchesInput(int glyphId, int atIdx)Description copied from class:ContextualRuleChecks if glyph line element matches element from input sequence of the rule.
NOTE: rules do not contain the first element of the input sequence, the first element is defined by rule position in substitution table. Therefore atIdx shall not be 0.- Specified by:
isGlyphMatchesInputin classContextualRule- Parameters:
glyphId- glyph code idatIdx- index in the rule sequence. Shall be: 0 < atIdx <ContextualRule.getContextLength()- Returns:
trueif glyph matches element
-
isGlyphMatchesLookahead
public boolean isGlyphMatchesLookahead(int glyphId, int atIdx)Description copied from class:ContextualRuleChecks if glyph line element matches element from lookahead sequence of the rule.- Overrides:
isGlyphMatchesLookaheadin classContextualRule- Parameters:
glyphId- glyph code idatIdx- index in rule sequence. Shall be: 0 <= atIdx <ContextualRule.getLookaheadContextLength()- Returns:
trueif glyph matches element from lookahead sequence
-
isGlyphMatchesBacktrack
public boolean isGlyphMatchesBacktrack(int glyphId, int atIdx)Description copied from class:ContextualRuleChecks if glyph line element matches element from backtrack sequence of the rule.- Overrides:
isGlyphMatchesBacktrackin classContextualRule- Parameters:
glyphId- glyph code idatIdx- index in rule sequence. Shall be: 0 <= atIdx <ContextualRule.getBacktrackContextLength()- Returns:
trueif glyph matches element from backtrack sequence
-
-