iText 8.0.2 API
iText.IO.Font.Otf.Lookuptype6.SubTableLookup6Format2.SubstRuleFormat2 Class Reference
Inheritance diagram for iText.IO.Font.Otf.Lookuptype6.SubTableLookup6Format2.SubstRuleFormat2:
iText.IO.Font.Otf.ContextualSubstRule iText.IO.Font.Otf.ContextualRule

Public Member Functions

  SubstRuleFormat2 (SubTableLookup6Format2 subTable, int[] backtrackClassIds, int[] inputClassIds, int[] lookAheadClassIds, SubstLookupRecord[] substLookupRecords)
 
override int  GetContextLength ()
  Gets the length of the context glyph sequence defined by this rule More...
 
override int  GetLookaheadContextLength ()
  Gets the length of the lookahead context glyph sequence defined by this rule More...
 
override int  GetBacktrackContextLength ()
  Gets the length of the backtrack context glyph sequence defined by this rule More...
 
override SubstLookupRecord[]  GetSubstLookupRecords ()
  Retrieves the substitution lookup records. More...
 
override bool  IsGlyphMatchesInput (int glyphId, int atIdx)
  Checks if glyph line element matches element from input sequence of the rule. More...
 
override bool  IsGlyphMatchesLookahead (int glyphId, int atIdx)
  Checks if glyph line element matches element from lookahead sequence of the rule. More...
 
override bool  IsGlyphMatchesBacktrack (int glyphId, int atIdx)
  Checks if glyph line element matches element from backtrack sequence of the rule. More...
 

Member Function Documentation

◆ GetBacktrackContextLength()

override int iText.IO.Font.Otf.Lookuptype6.SubTableLookup6Format2.SubstRuleFormat2.GetBacktrackContextLength ( )
inlinevirtual

Gets the length of the backtrack context glyph sequence defined by this rule

Returns
length of the backtrack context

Reimplemented from iText.IO.Font.Otf.ContextualRule.

◆ GetContextLength()

override int iText.IO.Font.Otf.Lookuptype6.SubTableLookup6Format2.SubstRuleFormat2.GetContextLength ( )
inlinevirtual

Gets the length of the context glyph sequence defined by this rule

Returns
length of the context

Implements iText.IO.Font.Otf.ContextualRule.

◆ GetLookaheadContextLength()

override int iText.IO.Font.Otf.Lookuptype6.SubTableLookup6Format2.SubstRuleFormat2.GetLookaheadContextLength ( )
inlinevirtual

Gets the length of the lookahead context glyph sequence defined by this rule

Returns
length of the lookahead context

Reimplemented from iText.IO.Font.Otf.ContextualRule.

◆ GetSubstLookupRecords()

override SubstLookupRecord [] iText.IO.Font.Otf.Lookuptype6.SubTableLookup6Format2.SubstRuleFormat2.GetSubstLookupRecords ( )
inlinevirtual

Retrieves the substitution lookup records.

Retrieves the substitution lookup records. Each record specifies a position in the context glyph sequence and a LookupListIndex to the substitution lookup that is applied at that position.

Returns
an array of SubstLookupRecord.

Implements iText.IO.Font.Otf.ContextualSubstRule.

◆ IsGlyphMatchesBacktrack()

override bool iText.IO.Font.Otf.Lookuptype6.SubTableLookup6Format2.SubstRuleFormat2.IsGlyphMatchesBacktrack ( int  glyphId,
int  atIdx 
)
inlinevirtual

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

Parameters
glyphId glyph code id
atIdx index in rule sequence. Shall be: 0 <= atIdx < GetBacktrackContextLength()
Returns

true if glyph matches element from backtrack sequence

Reimplemented from iText.IO.Font.Otf.ContextualRule.

◆ IsGlyphMatchesInput()

override bool iText.IO.Font.Otf.Lookuptype6.SubTableLookup6Format2.SubstRuleFormat2.IsGlyphMatchesInput ( int  glyphId,
int  atIdx 
)
inlinevirtual

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

Implements iText.IO.Font.Otf.ContextualRule.

◆ IsGlyphMatchesLookahead()

override bool iText.IO.Font.Otf.Lookuptype6.SubTableLookup6Format2.SubstRuleFormat2.IsGlyphMatchesLookahead ( int  glyphId,
int  atIdx 
)
inlinevirtual

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

Parameters
glyphId glyph code id
atIdx index in rule sequence. Shall be: 0 <= atIdx < GetLookaheadContextLength()
Returns

true if glyph matches element from lookahead sequence

Reimplemented from iText.IO.Font.Otf.ContextualRule.