iText 7 7.1.8 API
iText.IO.Font.Otf.ContextualSubstRule Class Referenceabstract
Inheritance diagram for iText.IO.Font.Otf.ContextualSubstRule:
iText.IO.Font.Otf.Lookuptype5.SubTableLookup5Format1.SubstRuleFormat1 iText.IO.Font.Otf.Lookuptype5.SubTableLookup5Format2.SubstRuleFormat2 iText.IO.Font.Otf.Lookuptype5.SubTableLookup5Format3.SubstRuleFormat3 iText.IO.Font.Otf.Lookuptype6.SubTableLookup6Format1.SubstRuleFormat1 iText.IO.Font.Otf.Lookuptype6.SubTableLookup6Format2.SubstRuleFormat2 iText.IO.Font.Otf.Lookuptype6.SubTableLookup6Format3.SubstRuleFormat3

Public Member Functions

abstract int  GetContextLength ()
 
Returns
length of the context glyph sequence defined by this rule.

 
abstract SubstLookupRecord[]  GetSubstLookupRecords ()
 
abstract bool  IsGlyphMatchesInput (int glyphId, int atIdx)
  Checks if glyph line element matches element from input sequence of the rule. More...
 
virtual int  GetLookaheadContextLength ()
 
Returns
length of the lookahead context glyph sequence defined by this rule.

 
virtual int  GetBacktrackContextLength ()
 
Returns
length of the backtrack context glyph sequence defined by this rule.

 
virtual bool  IsGlyphMatchesLookahead (int glyphId, int atIdx)
  Checks if glyph line element matches element from lookahead sequence of the rule. More...
 
virtual bool  IsGlyphMatchesBacktrack (int glyphId, int atIdx)
  Checks if glyph line element matches element from backtrack sequence of the rule. More...
 

Member Function Documentation

◆ GetSubstLookupRecords()

abstract SubstLookupRecord [] iText.IO.Font.Otf.ContextualSubstRule.GetSubstLookupRecords ( )
pure virtual

◆ IsGlyphMatchesBacktrack()

virtual bool iText.IO.Font.Otf.ContextualSubstRule.IsGlyphMatchesBacktrack ( int  glyphId,
int  atIdx 
)
inlinevirtual

Checks if glyph line element matches element from backtrack sequence of the rule.

Parameters
glyphId
Parameters
atIdx index in rule sequence. Shall be: 0 <= atIdx < ContextualSubstRule.getBacktrackContextLength().

Reimplemented in iText.IO.Font.Otf.Lookuptype6.SubTableLookup6Format2.SubstRuleFormat2, iText.IO.Font.Otf.Lookuptype6.SubTableLookup6Format1.SubstRuleFormat1, and iText.IO.Font.Otf.Lookuptype6.SubTableLookup6Format3.SubstRuleFormat3.

◆ IsGlyphMatchesInput()

abstract bool iText.IO.Font.Otf.ContextualSubstRule.IsGlyphMatchesInput ( int  glyphId,
int  atIdx 
)
pure virtual

Checks if glyph line element matches element from input sequence of the rule.

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.

Parameters
glyphId
Parameters
atIdx index in the rule sequence. Shall be: 0 < atIdx < ContextualSubstRule.getContextLength().

Implemented in iText.IO.Font.Otf.Lookuptype6.SubTableLookup6Format2.SubstRuleFormat2, iText.IO.Font.Otf.Lookuptype6.SubTableLookup6Format1.SubstRuleFormat1, iText.IO.Font.Otf.Lookuptype5.SubTableLookup5Format2.SubstRuleFormat2, iText.IO.Font.Otf.Lookuptype6.SubTableLookup6Format3.SubstRuleFormat3, iText.IO.Font.Otf.Lookuptype5.SubTableLookup5Format1.SubstRuleFormat1, and iText.IO.Font.Otf.Lookuptype5.SubTableLookup5Format3.SubstRuleFormat3.

◆ IsGlyphMatchesLookahead()

virtual bool iText.IO.Font.Otf.ContextualSubstRule.IsGlyphMatchesLookahead ( int  glyphId,
int  atIdx 
)
inlinevirtual

Checks if glyph line element matches element from lookahead sequence of the rule.

Parameters
glyphId
Parameters
atIdx index in rule sequence. Shall be: 0 <= atIdx < ContextualSubstRule.getLookaheadContextLength().

Reimplemented in iText.IO.Font.Otf.Lookuptype6.SubTableLookup6Format2.SubstRuleFormat2, iText.IO.Font.Otf.Lookuptype6.SubTableLookup6Format1.SubstRuleFormat1, and iText.IO.Font.Otf.Lookuptype6.SubTableLookup6Format3.SubstRuleFormat3.