Re: defining how SVG DOM text methods take into account textLength=""

Cameron McCormack wrote:
> It's not clear how the various SVG DOM text methods on
> SVGTextContentElement are affected by textLength="" and lengthAdjust="".
> I think that when lengthAdjust="spacing", they should behave as if the
> glyphs have been repositioned using x="". That would mean
> getComputedTextLength would return the same value as when there is no
> textLength="". When lengthAdjust="spacingAndGlyphs", the methods should
> behave as if the glyph cells cover their newly scaled area, and so
> getComputedTextLength would return the textLength value, getExtentOfChar
> would return the scaled glyph cell, etc.

We decided on the call today to have getComputedTextLength and 
getSubStringLength work on the UA-computed length (i.e., before applying 
the lengthAdjust="" adjustments), and all others are affected by 
lengthAdjust="".

Received on Friday, 12 July 2013 06:31:58 UTC