getSubStringLength

fun getSubStringLength(charnum: Int, nchars: Int): Float(source)

The getSubStringLength() method of the SVGTextContentElement interface represents the computed length of the formatted text advance distance for a substring of text within the element.

MDN Reference