Class SubTableLookup6Format2
- java.lang.Object
-
- com.itextpdf.io.font.otf.ContextualTable<T>
-
- com.itextpdf.io.font.otf.ChainingContextualTable<ContextualSubstRule>
-
- com.itextpdf.io.font.otf.lookuptype6.SubTableLookup6Format2
-
public class SubTableLookup6Format2 extends ChainingContextualTable<ContextualSubstRule>
Chaining Contextual Substitution Subtable: Class-based Chaining Context Glyph Substitution
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SubTableLookup6Format2.SubstRuleFormat2
-
Field Summary
Fields Modifier and Type Field Description private OtfClass
backtrackClassDefinition
private OtfClass
inputClassDefinition
private OtfClass
lookaheadClassDefinition
private java.util.List<java.util.List<ContextualSubstRule>>
subClassSets
private java.util.Set<java.lang.Integer>
substCoverageGlyphIds
-
Fields inherited from class com.itextpdf.io.font.otf.ContextualTable
lookupFlag, openReader
-
-
Constructor Summary
Constructors Constructor Description SubTableLookup6Format2(OpenTypeFontTableReader openReader, int lookupFlag, java.util.Set<java.lang.Integer> substCoverageGlyphIds, OtfClass backtrackClassDefinition, OtfClass inputClassDefinition, OtfClass lookaheadClassDefinition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<ContextualSubstRule>
getSetOfRulesForStartGlyph(int startId)
Gets a set of rules, which start with given glyph id.void
setSubClassSets(java.util.List<java.util.List<ContextualSubstRule>> subClassSets)
-
Methods inherited from class com.itextpdf.io.font.otf.ChainingContextualTable
checkIfBacktrackContextMatch, checkIfLookaheadContextMatch, getMatchingContextRule
-
Methods inherited from class com.itextpdf.io.font.otf.ContextualTable
checkIfContextMatch
-
-
-
-
Field Detail
-
substCoverageGlyphIds
private java.util.Set<java.lang.Integer> substCoverageGlyphIds
-
subClassSets
private java.util.List<java.util.List<ContextualSubstRule>> subClassSets
-
backtrackClassDefinition
private OtfClass backtrackClassDefinition
-
inputClassDefinition
private OtfClass inputClassDefinition
-
lookaheadClassDefinition
private OtfClass lookaheadClassDefinition
-
-
Constructor Detail
-
SubTableLookup6Format2
public SubTableLookup6Format2(OpenTypeFontTableReader openReader, int lookupFlag, java.util.Set<java.lang.Integer> substCoverageGlyphIds, OtfClass backtrackClassDefinition, OtfClass inputClassDefinition, OtfClass lookaheadClassDefinition)
-
-
Method Detail
-
setSubClassSets
public void setSubClassSets(java.util.List<java.util.List<ContextualSubstRule>> subClassSets)
-
getSetOfRulesForStartGlyph
protected java.util.List<ContextualSubstRule> getSetOfRulesForStartGlyph(int startId)
Description copied from class:ContextualTable
Gets a set of rules, which start with given glyph id.- Specified by:
getSetOfRulesForStartGlyph
in classContextualTable<ContextualSubstRule>
- Parameters:
startId
- id of the first glyph in the sequence- Returns:
- a list of
ContextualSubstRule
instances. The list will be empty if there are no rules that start with a given glyph id
-
-