TextLength
TextLength is an attribute used in Scalable Vector Graphics (SVG) on text-related elements such as text and tspan. It specifies the desired rendered length of the text along the horizontal axis, measured in the SVG user coordinate system. When textLength is provided, the user agent adjusts how the text is laid out so that the rendered string occupies the specified distance.
The adjustment is controlled by the lengthAdjust attribute, which can be set to "spacing" or "spacingAndGlyphs."
Syntax and usage are straightforward: the value of textLength is a length, specified in the current user
Browser support for textLength is available in modern SVG-enabled browsers. As with other SVG layout features,