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 from iText.IO.Font.Otf.ContextualTable< T >.