public abstract class ChainingContextualTable<T extends ContextualRule> extends ContextualTable<T>
lookupFlag, openReader| Modifier | Constructor and Description |
|---|---|
protected |
ChainingContextualTable(OpenTypeFontTableReader openReader,
int lookupFlag) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkIfBacktrackContextMatch(GlyphLine line,
T rule)
Checks if given glyph line at the given position matches given rule.
|
protected boolean |
checkIfLookaheadContextMatch(GlyphLine line,
T rule,
int startIdx)
Checks if given glyph line at the given position matches given rule.
|
T |
getMatchingContextRule(GlyphLine line)
Gets a most preferable context rule that matches the line at current position.
|
checkIfContextMatch, getSetOfRulesForStartGlyphprotected ChainingContextualTable(OpenTypeFontTableReader openReader, int lookupFlag)
public T getMatchingContextRule(GlyphLine line)
ContextualTablenull.
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.getMatchingContextRule in class ContextualTable<T extends ContextualRule>line - a line, which is to be checked if it matches some context.protected boolean checkIfLookaheadContextMatch(GlyphLine line, T rule, int startIdx)
line - glyph line to be checkedrule - rule to be compared with a given linestartIdx - glyph line positionprotected boolean checkIfBacktrackContextMatch(GlyphLine line, T rule)
line - glyph line to be checkedrule - rule to be compared with a given lineCopyright © 1998–2025 Apryse Group NV. All rights reserved.