iText 8.0.2 API
iText.IO.Font.Otf.Lookuptype8.PosTableLookup8Format3.PosRuleFormat3 Class Reference
Inheritance diagram for iText.IO.Font.Otf.Lookuptype8.PosTableLookup8Format3.PosRuleFormat3:
iText.IO.Font.Otf.ContextualPositionRule iText.IO.Font.Otf.ContextualRule

Public Member Functions

  PosRuleFormat3 (IList< ICollection< int >> backtrackCoverages, IList< ICollection< int >> inputCoverages, IList< ICollection< int >> lookaheadCoverages, PosLookupRecord[] posLookupRecords)
 
override PosLookupRecord[]  GetPosLookupRecords ()
  Retrieves the position lookup records. More...
 
override int  GetContextLength ()
  Gets the length of the context glyph sequence defined by this rule More...
 
virtual ICollection< int >  GetInputCoverage (int idx)
 
override bool  IsGlyphMatchesInput (int glyphId, int atIdx)
  Checks if glyph line element matches element from input sequence of the rule. More...
 
override int  GetLookaheadContextLength ()
  Gets the length of the lookahead context glyph sequence defined by this rule More...
 
override bool  IsGlyphMatchesLookahead (int glyphId, int atIdx)
  Checks if glyph line element matches element from lookahead sequence of the rule. More...
 
override int  GetBacktrackContextLength ()
  Gets the length of the backtrack context glyph sequence defined by this 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.Lookuptype8.PosTableLookup8Format3.PosRuleFormat3.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.Lookuptype8.PosTableLookup8Format3.PosRuleFormat3.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.Lookuptype8.PosTableLookup8Format3.PosRuleFormat3.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.

◆ GetPosLookupRecords()

override PosLookupRecord [] iText.IO.Font.Otf.Lookuptype8.PosTableLookup8Format3.PosRuleFormat3.GetPosLookupRecords ( )
inlinevirtual

Retrieves the position lookup records.

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.

Returns
an array of PosLookupRecord.

Implements iText.IO.Font.Otf.ContextualPositionRule.

◆ IsGlyphMatchesBacktrack()

override bool iText.IO.Font.Otf.Lookuptype8.PosTableLookup8Format3.PosRuleFormat3.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.Lookuptype8.PosTableLookup8Format3.PosRuleFormat3.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.Lookuptype8.PosTableLookup8Format3.PosRuleFormat3.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.