iText 8.0.2 API
iText.IO.Font.Otf.Lookuptype5.SubTableLookup5Format1.SubstRuleFormat1 Class Reference
Inheritance diagram for iText.IO.Font.Otf.Lookuptype5.SubTableLookup5Format1.SubstRuleFormat1:
iText.IO.Font.Otf.ContextualSubstRule iText.IO.Font.Otf.ContextualRule

Public Member Functions

  SubstRuleFormat1 (int[] inputGlyphIds, SubstLookupRecord[] substLookupRecords)
 
override int  GetContextLength ()
  Gets the length of the 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...
 
- Public Member Functions inherited from iText.IO.Font.Otf.ContextualRule
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

◆ GetContextLength()

override int iText.IO.Font.Otf.Lookuptype5.SubTableLookup5Format1.SubstRuleFormat1.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.

◆ GetSubstLookupRecords()

override SubstLookupRecord [] iText.IO.Font.Otf.Lookuptype5.SubTableLookup5Format1.SubstRuleFormat1.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.

◆ IsGlyphMatchesInput()

override bool iText.IO.Font.Otf.Lookuptype5.SubTableLookup5Format1.SubstRuleFormat1.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.