Class SubTableLookup5Format1
- java.lang.Object
-
- com.itextpdf.io.font.otf.ContextualTable<ContextualSubstRule>
-
- com.itextpdf.io.font.otf.lookuptype5.SubTableLookup5Format1
-
public class SubTableLookup5Format1 extends ContextualTable<ContextualSubstRule>
Contextual Substitution Subtable: Simple context glyph substitution
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SubTableLookup5Format1.SubstRuleFormat1
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.Integer,java.util.List<ContextualSubstRule>>
substMap
-
Fields inherited from class com.itextpdf.io.font.otf.ContextualTable
lookupFlag, openReader
-
-
Constructor Summary
Constructors Constructor Description SubTableLookup5Format1(OpenTypeFontTableReader openReader, int lookupFlag, java.util.Map<java.lang.Integer,java.util.List<ContextualSubstRule>> substMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<ContextualSubstRule>
getSetOfRulesForStartGlyph(int startGlyphId)
Gets a set of rules, which start with given glyph id.-
Methods inherited from class com.itextpdf.io.font.otf.ContextualTable
checkIfContextMatch, getMatchingContextRule
-
-
-
-
Field Detail
-
substMap
private java.util.Map<java.lang.Integer,java.util.List<ContextualSubstRule>> substMap
-
-
Constructor Detail
-
SubTableLookup5Format1
public SubTableLookup5Format1(OpenTypeFontTableReader openReader, int lookupFlag, java.util.Map<java.lang.Integer,java.util.List<ContextualSubstRule>> substMap)
-
-
Method Detail
-
getSetOfRulesForStartGlyph
protected java.util.List<ContextualSubstRule> getSetOfRulesForStartGlyph(int startGlyphId)
Description copied from class:ContextualTable
Gets a set of rules, which start with given glyph id.- Specified by:
getSetOfRulesForStartGlyph
in classContextualTable<ContextualSubstRule>
- Parameters:
startGlyphId
- 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
-
-