Class PosTableLookup7Format2.PosRuleFormat2
- java.lang.Object
-
- com.itextpdf.io.font.otf.ContextualRule
-
- com.itextpdf.io.font.otf.ContextualPositionRule
-
- com.itextpdf.io.font.otf.lookuptype7.PosTableLookup7Format2.PosRuleFormat2
-
- Enclosing class:
- PosTableLookup7Format2
public static class PosTableLookup7Format2.PosRuleFormat2 extends ContextualPositionRule
-
-
Field Summary
Fields Modifier and Type Field Description private OtfClass
classDefinition
private int[]
inputClassIds
private PosLookupRecord[]
posLookupRecords
-
Constructor Summary
Constructors Constructor Description PosRuleFormat2(PosTableLookup7Format2 subTable, int[] inputClassIds, PosLookupRecord[] posLookupRecords)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getContextLength()
Gets the length of the context glyph sequence defined by this rulePosLookupRecord[]
getPosLookupRecords()
Retrieves the position lookup records.boolean
isGlyphMatchesInput(int glyphId, int atIdx)
Checks if glyph line element matches element from input sequence of the rule.-
Methods inherited from class com.itextpdf.io.font.otf.ContextualRule
getBacktrackContextLength, getLookaheadContextLength, isGlyphMatchesBacktrack, isGlyphMatchesLookahead
-
-
-
-
Field Detail
-
inputClassIds
private int[] inputClassIds
-
posLookupRecords
private PosLookupRecord[] posLookupRecords
-
classDefinition
private OtfClass classDefinition
-
-
Constructor Detail
-
PosRuleFormat2
public PosRuleFormat2(PosTableLookup7Format2 subTable, int[] inputClassIds, PosLookupRecord[] posLookupRecords)
-
-
Method Detail
-
getContextLength
public int getContextLength()
Description copied from class:ContextualRule
Gets the length of the context glyph sequence defined by this rule- Specified by:
getContextLength
in classContextualRule
- Returns:
- length of the context
-
getPosLookupRecords
public PosLookupRecord[] getPosLookupRecords()
Description copied from class:ContextualPositionRule
Retrieves the position lookup records. Each record specifies a position in the context glyph sequence and a LookupListIndex to the position lookup that is applied at that position.- Specified by:
getPosLookupRecords
in classContextualPositionRule
- Returns:
- an array of
PosLookupRecord
.
-
isGlyphMatchesInput
public boolean isGlyphMatchesInput(int glyphId, int atIdx)
Description copied from class:ContextualRule
Checks if glyph line element matches element from input sequence of the rule.
NOTE: rules do not contain the first element of the input sequence, the first element is defined by rule position in substitution table. Therefore atIdx shall not be 0.- Specified by:
isGlyphMatchesInput
in classContextualRule
- Parameters:
glyphId
- glyph code idatIdx
- index in the rule sequence. Shall be: 0 < atIdx <ContextualRule.getContextLength()
- Returns:
true
if glyph matches element
-
-