W3C home > Mailing lists > Public > www-style@w3.org > September 2013

Re: [cssom-views] getBoxQuads and SVG text

From: Cameron McCormack <cam@mcc.id.au>
Date: Thu, 19 Sep 2013 10:22:30 +1000
Message-ID: <523A43C6.40209@mcc.id.au>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: Robert O'Callahan <robert@ocallahan.org>, www-style <www-style@w3.org>
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

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:32 UTC