public abstract class ContextualSubTable extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected int |
lookupFlag |
protected OpenTypeFontTableReader |
openReader |
Modifier | Constructor and Description |
---|---|
protected |
ContextualSubTable(OpenTypeFontTableReader openReader, int lookupFlag) |
Modifier and Type | Method and Description |
---|---|
protected int |
checkIfContextMatch(GlyphLine line, ContextualSubstRule rule)
Checks if given glyph line at the given position matches given rule.
|
ContextualSubstRule |
getMatchingContextRule(GlyphLine line)
Gets a most preferable context rule that matches the line at current position.
|
protected abstract List<ContextualSubstRule> |
getSetOfRulesForStartGlyph(int startId)
Gets a set of rules, which start with given glyph id.
|
protected OpenTypeFontTableReader openReader
protected int lookupFlag
protected ContextualSubTable(OpenTypeFontTableReader openReader, int lookupFlag)
public ContextualSubstRule getMatchingContextRule(GlyphLine line)
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<ContextualSubstRule> getSetOfRulesForStartGlyph(int startId)
startId
- id of the first glyph in the sequence.
protected int checkIfContextMatch(GlyphLine line, ContextualSubstRule rule)
Copyright © 1998–2018 iText Group NV. All rights reserved.