Class PosTableLookup7Format2
java.lang.Object
com.itextpdf.io.font.otf.ContextualTable<ContextualPositionRule>
com.itextpdf.io.font.otf.lookuptype7.PosTableLookup7Format2
Contextual Positioning Subtable: Class-Based Glyph Contexts.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents the positioning rule format2 of an OpenType font. -
Field Summary
Fields inherited from class com.itextpdf.io.font.otf.ContextualTable
lookupFlag, openReader -
Constructor Summary
ConstructorsConstructorDescriptionPosTableLookup7Format2(OpenTypeFontTableReader openReader, int lookupFlag, Set<Integer> posCoverageGlyphIds, OtfClass classDefinition) Creates a new Contextual Positioning Subtable. -
Method Summary
Modifier and TypeMethodDescriptionprotected List<ContextualPositionRule>getSetOfRulesForStartGlyph(int startId) Gets a set of rules, which start with given glyph id.voidsetPosClassSets(List<List<ContextualPositionRule>> posClassSets) Updates the positioning class sets.Methods inherited from class com.itextpdf.io.font.otf.ContextualTable
checkIfContextMatch, getMatchingContextRule
-
Constructor Details
-
PosTableLookup7Format2
public PosTableLookup7Format2(OpenTypeFontTableReader openReader, int lookupFlag, Set<Integer> posCoverageGlyphIds, OtfClass classDefinition) Creates a new Contextual Positioning 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 -
posCoverageGlyphIds- the positioning coverage glyph ids -
classDefinition- the class definition
-
-
Method Details
-
setPosClassSets
Updates the positioning class sets.- Parameters:
-
posClassSets- the positioning class sets
-
getSetOfRulesForStartGlyph
Description copied from class:ContextualTableGets a set of rules, which start with given glyph id.- Specified by:
-
getSetOfRulesForStartGlyphin classContextualTable<ContextualPositionRule> - 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
-