Re: [cssom-views] getBoxQuads and SVG text

Tab Atkins Jr. wrote:
> On Wed, Sep 18, 2013 at 4:00 AM, Robert O'Callahan<robert@ocallahan.org>  wrote:
>> It's not clear to me how getBoxQuads should behave when called on an SVG
>> text element, or text node child of an SVG text element, that is being
>> rendered along a path. Should we return one DOMQuad per glyph, or one
>> DOMQuad that contains all the glyphs, or something else?
>
> That is an excellent question.  Off the top of my head, yes, one quad per glyph.

The behaviour should be the same for text along a path as for <text> or 
<tspan> with positioned glyphs, I think.  So if

   <text x="100 200 300">abc</text>

returns three quads, then so should

   <text><textPath xlink:href="...">abc</textPath></text>

Received on Thursday, 19 September 2013 00:23:07 UTC