public abstract class ContextualTableContextualRule> extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected int |
lookupFlag |
protected OpenTypeFontTableReader |
openReader |
Modifier | Constructor and Description |
---|---|
protected |
ContextualTable(OpenTypeFontTableReader openReader, int lookupFlag) |
Modifier and Type | Method and Description |
---|---|
protected int |
checkIfContextMatch(GlyphLine line, T rule)
Checks if given glyph line matches given rule.
|
T |
getMatchingContextRule(GlyphLine line)
Gets a most preferable context rule that matches the line at current position.
|
protected abstract List<T> |
getSetOfRulesForStartGlyph(int startId)
Gets a set of rules, which start with given glyph id.
|
protected OpenTypeFontTableReader openReader
protected int lookupFlag
protected ContextualTable(OpenTypeFontTableReader openReader, int lookupFlag)
public T getMatchingContextRule(GlyphLine line)
null
.
GlyphLine.start
and GlyphLine.end
will be changed in such way that they will point at start and end of the matching context glyph sequence inside the glyph line.
line
- a line, which is to be checked if it matches some context.
protected abstract List<T> getSetOfRulesForStartGlyph(int startId)
startId
- id of the first glyph in the sequence
ContextualSubstRule
instances. The list will be empty if there are no rules that start with a given glyph id
protected int checkIfContextMatch(GlyphLine line, T rule)
line
- glyph line to be checked
rule
- rule to be compared with a given glyph line
Copyright © 1998–2021 iText Group NV. All rights reserved.