W3C home > Mailing lists > Public > public-svg-wg@w3.org > October to December 2010

getComputedTextLength question

From: Patrick Dengler <patd@microsoft.com>
Date: Tue, 16 Nov 2010 16:18:42 +0000
To: 'SVG Working Group WG' <public-svg-wg@w3.org>
Message-ID: <4A2DB3AE4504E944AF122BBFBA7FBA1F56FD1098@TK5EX14MBXC112.redmond.corp.microsoft.com>
(it does not look like this request made it through to the WG. Resending)

The definition for getComputedTextLength() does not indicate that textLength should be taken into account, which seems to be important.  Should it?


float getComputedTextLength()
The total sum of all of the advance values from rendering all of the characters within this element, including the advance value on the glyphs (horizontal or vertical), the effect of properties ‘kerning’, ‘letter-spacing’ and ‘word-spacing’ and adjustments due to attributes ‘dx’ and ‘dy’ on ‘tspan’ elements. For non-rendering environments, the user agent shall make reasonable assumptions about glyph metrics. 
Returns
The text advance distance.


Received on Tuesday, 16 November 2010 16:19:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 16 November 2010 16:19:18 GMT