Class SubTableLookup5Format2
- java.lang.Object
-
- com.itextpdf.io.font.otf.ContextualTable<ContextualSubstRule>
-
- com.itextpdf.io.font.otf.lookuptype5.SubTableLookup5Format2
-
public class SubTableLookup5Format2 extends ContextualTable<ContextualSubstRule>
Contextual Substitution Subtable: Class-based context glyph substitution
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SubTableLookup5Format2.SubstRuleFormat2
-
Field Summary
Fields Modifier and Type Field Description private OtfClass
classDefinition
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 SubTableLookup5Format2(OpenTypeFontTableReader openReader, int lookupFlag, java.util.Set<java.lang.Integer> substCoverageGlyphIds, OtfClass classDefinition)
-
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.ContextualTable
checkIfContextMatch, getMatchingContextRule
-
-
-
-
Field Detail
-
substCoverageGlyphIds
private java.util.Set<java.lang.Integer> substCoverageGlyphIds
-
subClassSets
private java.util.List<java.util.List<ContextualSubstRule>> subClassSets
-
classDefinition
private OtfClass classDefinition
-
-
Constructor Detail
-
SubTableLookup5Format2
public SubTableLookup5Format2(OpenTypeFontTableReader openReader, int lookupFlag, java.util.Set<java.lang.Integer> substCoverageGlyphIds, OtfClass classDefinition)
-
-
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
-
-