Class SubTableLookup6Format2
java.lang.Object
com.itextpdf.io.font.otf.ContextualTable
com.itextpdf.io.font.otf.ChainingContextualTable<ContextualSubstRule>
com.itextpdf.io.font.otf.lookuptype6.SubTableLookup6Format2
Chaining Contextual Substitution Subtable: Class-based Chaining Context Glyph Substitution
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents the substitution rule format2 of an OpenType font. -
Field Summary
Fields inherited from class com.itextpdf.io.font.otf.ContextualTable
lookupFlag, openReader -
Constructor Summary
ConstructorsConstructorDescriptionSubTableLookup6Format2(OpenTypeFontTableReader openReader, int lookupFlag, Set<Integer> substCoverageGlyphIds, OtfClass backtrackClassDefinition, OtfClass inputClassDefinition, OtfClass lookaheadClassDefinition) Creates a new Chaining Contextual Substitution Subtable. -
Method Summary
Modifier and TypeMethodDescriptionprotected List<ContextualSubstRule>getSetOfRulesForStartGlyph(int startId) Gets a set of rules, which start with given glyph id.voidsetSubClassSets(List<List<ContextualSubstRule>> subClassSets) Updates the substitution class sets.Methods inherited from class com.itextpdf.io.font.otf.ChainingContextualTable
checkIfBacktrackContextMatch, checkIfLookaheadContextMatch, getMatchingContextRuleMethods inherited from class com.itextpdf.io.font.otf.ContextualTable
checkIfContextMatch
-
Constructor Details
-
SubTableLookup6Format2
public SubTableLookup6Format2(OpenTypeFontTableReader openReader, int lookupFlag, Set<Integer> substCoverageGlyphIds, OtfClass backtrackClassDefinition, OtfClass inputClassDefinition, OtfClass lookaheadClassDefinition) Creates a new Chaining Contextual Substitution Subtable.- Parameters:
-
openReader- the OpenType font reader -
lookupFlag- specifies processing options, e.g. whether to skip base glyphs, marks or ligatures during glyph substitution or positioning. See Lookup table -
substCoverageGlyphIds- the substitution coverage glyph ids -
backtrackClassDefinition- the backtrack class definition -
inputClassDefinition- the input class definition -
lookaheadClassDefinition- the lookahead class definition
-
-
Method Details
-
setSubClassSets
Updates the substitution class sets.- Parameters:
-
subClassSets- the substitution class sets
-
getSetOfRulesForStartGlyph
Description copied from class:ContextualTableGets a set of rules, which start with given glyph id.- Specified by:
-
getSetOfRulesForStartGlyphin classContextualTable<ContextualSubstRule> - Parameters:
-
startId- id of the first glyph in the sequence - Returns:
-
a list of
ContextualSubstRuleinstances. The list will be empty if there are no rules that start with a given glyph id
-