iText 7 7.1.8 API
iText.IO.Font.Otf.ContextualSubTable Class Referenceabstract
Inheritance diagram for iText.IO.Font.Otf.ContextualSubTable:
iText.IO.Font.Otf.Lookuptype5.SubTableLookup5Format1 iText.IO.Font.Otf.Lookuptype5.SubTableLookup5Format2 iText.IO.Font.Otf.Lookuptype5.SubTableLookup5Format3 iText.IO.Font.Otf.Lookuptype6.SubTableLookup6 iText.IO.Font.Otf.Lookuptype6.SubTableLookup6Format1 iText.IO.Font.Otf.Lookuptype6.SubTableLookup6Format2 iText.IO.Font.Otf.Lookuptype6.SubTableLookup6Format3

Public Member Functions

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

Member Function Documentation

◆ GetMatchingContextRule()

virtual ContextualSubstRule iText.IO.Font.Otf.ContextualSubTable.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.Lookuptype6.SubTableLookup6.