getCharNumAtPosition

fun getCharNumAtPosition(point: DOMPointReadOnly = definedExternally): Int(source)

The getCharNumAtPosition() method of the SVGTextContentElement interface represents the character which caused a text glyph to be rendered at a given position in the coordinate system.

MDN Reference