iText 8.0.2 API
iText.IO.Font.Otf.ContextualRule Class Referenceabstract
Inheritance diagram for iText.IO.Font.Otf.ContextualRule:
iText.IO.Font.Otf.ContextualPositionRule iText.IO.Font.Otf.ContextualSubstRule iText.IO.Font.Otf.Lookuptype7.PosTableLookup7Format2.PosRuleFormat2 iText.IO.Font.Otf.Lookuptype8.PosTableLookup8Format1.PosRuleFormat1 iText.IO.Font.Otf.Lookuptype8.PosTableLookup8Format2.PosRuleFormat2 iText.IO.Font.Otf.Lookuptype8.PosTableLookup8Format3.PosRuleFormat3 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 ()
  Gets the length of the context glyph sequence defined by this rule More...
 
abstract bool  IsGlyphMatchesInput (int glyphId, int atIdx)
  Checks if glyph line element matches element from input sequence of the rule. More...
 
virtual int  GetLookaheadContextLength ()
  Gets the length of the lookahead context glyph sequence defined by this rule More...
 
virtual int  GetBacktrackContextLength ()
  Gets the length of the backtrack context glyph sequence defined by this rule More...
 
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

◆ GetBacktrackContextLength()

◆ GetContextLength()

◆ GetLookaheadContextLength()

◆ IsGlyphMatchesBacktrack()

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

◆ IsGlyphMatchesInput()

abstract bool iText.IO.Font.Otf.ContextualRule.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 glyph code id
atIdx index in the rule sequence. Shall be: 0 < atIdx < GetContextLength()
Returns

true if glyph matches element

Implemented in iText.IO.Font.Otf.Lookuptype8.PosTableLookup8Format2.PosRuleFormat2, iText.IO.Font.Otf.Lookuptype6.SubTableLookup6Format2.SubstRuleFormat2, iText.IO.Font.Otf.Lookuptype8.PosTableLookup8Format1.PosRuleFormat1, 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.Lookuptype7.PosTableLookup7Format2.PosRuleFormat2, iText.IO.Font.Otf.Lookuptype8.PosTableLookup8Format3.PosRuleFormat3, iText.IO.Font.Otf.Lookuptype5.SubTableLookup5Format1.SubstRuleFormat1, and iText.IO.Font.Otf.Lookuptype5.SubTableLookup5Format3.SubstRuleFormat3.

◆ IsGlyphMatchesLookahead()

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