Class PosTableLookup8Format2
- java.lang.Object
-
- com.itextpdf.io.font.otf.ContextualTable<T>
-
- com.itextpdf.io.font.otf.ChainingContextualTable<ContextualPositionRule>
-
- com.itextpdf.io.font.otf.lookuptype8.PosTableLookup8Format2
-
public class PosTableLookup8Format2 extends ChainingContextualTable<ContextualPositionRule>
Chained Contexts Positioning Format 2: Class-based Glyph Contexts
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PosTableLookup8Format2.PosRuleFormat2
-
Field Summary
Fields Modifier and Type Field Description private OtfClass
backtrackClassDefinition
private OtfClass
inputClassDefinition
private OtfClass
lookaheadClassDefinition
private java.util.List<java.util.List<ContextualPositionRule>>
posClassSets
private java.util.Set<java.lang.Integer>
posCoverageGlyphIds
-
Fields inherited from class com.itextpdf.io.font.otf.ContextualTable
lookupFlag, openReader
-
-
Constructor Summary
Constructors Constructor Description PosTableLookup8Format2(OpenTypeFontTableReader openReader, int lookupFlag, java.util.Set<java.lang.Integer> posCoverageGlyphIds, OtfClass backtrackClassDefinition, OtfClass inputClassDefinition, OtfClass lookaheadClassDefinition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPosClassSet(java.util.List<ContextualPositionRule> posClassSet)
protected java.util.List<ContextualPositionRule>
getSetOfRulesForStartGlyph(int startId)
Gets a set of rules, which start with given glyph id.-
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
-
posCoverageGlyphIds
private java.util.Set<java.lang.Integer> posCoverageGlyphIds
-
posClassSets
private java.util.List<java.util.List<ContextualPositionRule>> posClassSets
-
backtrackClassDefinition
private OtfClass backtrackClassDefinition
-
inputClassDefinition
private OtfClass inputClassDefinition
-
lookaheadClassDefinition
private OtfClass lookaheadClassDefinition
-
-
Constructor Detail
-
PosTableLookup8Format2
public PosTableLookup8Format2(OpenTypeFontTableReader openReader, int lookupFlag, java.util.Set<java.lang.Integer> posCoverageGlyphIds, OtfClass backtrackClassDefinition, OtfClass inputClassDefinition, OtfClass lookaheadClassDefinition)
-
-
Method Detail
-
addPosClassSet
public void addPosClassSet(java.util.List<ContextualPositionRule> posClassSet)
-
getSetOfRulesForStartGlyph
protected java.util.List<ContextualPositionRule> getSetOfRulesForStartGlyph(int startId)
Description copied from class:ContextualTable
Gets a set of rules, which start with given glyph id.- Specified by:
getSetOfRulesForStartGlyph
in classContextualTable<ContextualPositionRule>
- 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
-
-