getComputedTextLength

The getComputedTextLength() method of the SVGTextContentElement interface represents the computed length for the text within the element.

MDN Reference