iText 8.0.2 API
iText.IO.Font.Otf.ContextualTable< T > Class Template Referenceabstract
Inheritance diagram for iText.IO.Font.Otf.ContextualTable< T >:
iText.IO.Font.Otf.ChainingContextualTable< T >

Public Member Functions

virtual T  GetMatchingContextRule (GlyphLine line)
  Gets a most preferable context rule that matches the line at current position. More...
 

Member Function Documentation

◆ GetMatchingContextRule()

virtual T iText.IO.Font.Otf.ContextualTable< T >.GetMatchingContextRule ( GlyphLine  line )
inlinevirtual

Gets a most preferable context rule that matches the line at current position.

Gets a most preferable context rule that matches the line at current position. If no matching context rule is found, it returns null.

NOTE: if matching context rule is found, the GlyphLine.start and GlyphLine.end will be changed in such way that they will point at start and end of the matching context glyph sequence inside the glyph line.

Parameters
line a line, which is to be checked if it matches some context.
Returns
matching context rule or null, if none was found.

Reimplemented in iText.IO.Font.Otf.ChainingContextualTable< T >.