getComputedTextLength method
[This documentation is preliminary and is subject to change.]
Returns the total sum of all advance values from rendering all characters within the given text element.
![]() ![]() |
Syntax
float retVal = object.getComputedTextLength();
Standards information
- Scalable Vector Graphics: Text, Section 10.17.1
Parameters
This method has no parameters.
Remarks
The return value of the getComputedTextLength method enables Windows Internet Explorer to make reasonable assumptions about the glyph metrics for non-rendering processes.
The total text advance distance includes the advance values on the glyphs (horizontal or vertical), kerning effects, letter-spacing effects, word-spacing effects, and adjustments because of the dx and dy attributes on SVGTSpanElement elements.
Build date: 1/26/2012
.png)
.png)