Package com.itextpdf.io.font.otf
Class ChainingContextualTableContextualRule>
java.lang.Object
com.itextpdf.io.font.otf.ContextualTable
com.itextpdf.io.font.otf.ChainingContextualTable
- Type Parameters:
-
T- the contextual rule type stored by this table
- Direct Known Subclasses:
-
PosTableLookup8Format1,PosTableLookup8Format2,PosTableLookup8Format3,SubTableLookup6Format1,SubTableLookup6Format2,SubTableLookup6Format3
Represents the chaining contextual table component of an OpenType font.
-
Field Summary
Fields inherited from class com.itextpdf.io.font.otf.ContextualTable
lookupFlag, openReader -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedChainingContextualTable(OpenTypeFontTableReader openReader, int lookupFlag) Creates a new chaining contextual table. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckIfBacktrackContextMatch(GlyphLine line, T rule) Checks if given glyph line at the given position matches given rule.protected booleancheckIfLookaheadContextMatch(GlyphLine line, T rule, int startIdx) Checks if given glyph line at the given position matches given rule.Returns the matching context rule.Methods inherited from class com.itextpdf.io.font.otf.ContextualTable
checkIfContextMatch, getSetOfRulesForStartGlyph
-
Constructor Details
-
ChainingContextualTable
Creates a new chaining contextual table.- 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
-
-
Method Details
-
getMatchingContextRule
Returns the matching context rule.- Overrides:
-
getMatchingContextRulein classContextualTable<T extends ContextualRule> - Parameters:
-
line- the glyph line - Returns:
- the matching context rule
-
checkIfLookaheadContextMatch
Checks if given glyph line at the given position matches given rule.- Parameters:
-
line- glyph line to be checked -
rule- rule to be compared with a given line -
startIdx- glyph line position - Returns:
- true if given glyph line at the given position matches given rule
-
checkIfBacktrackContextMatch
Checks if given glyph line at the given position matches given rule.- Parameters:
-
line- glyph line to be checked -
rule- rule to be compared with a given line - Returns:
- true if given glyph line matches given rule
-