W3C home > Mailing lists > Public > www-svg@w3.org > January 2005

Re: SVG12: Text Layout vs Scripting

From: Peter Sorotokin <psorotok@adobe.com>
Date: Wed, 12 Jan 2005 09:52:00 -0800
To: Bjoern Hoehrmann <derhoermi@gmx.net>, Thomas DeWeese <Thomas.DeWeese@Kodak.com>
Cc: www-svg@w3.org
Message-id: <5.2.0.9.2.20050112095106.02e8bd30@mailsj-v1.corp.adobe.com>

At 10:33 AM 1/12/2005 +0100, Bjoern Hoehrmann wrote:
>[snip]
> >    I'd be curious how you came to this conclusion, because I just
> >checked Batik and ASV and both of them behave this way (getBBox works
> >on text that has been dynamically created and inserted into the
> >document, before any rendering has happened).  In my mind this is the
> >only reasonable solution.
>
>With Adobe SVG Viewer 6.0 Build 38363 the following
>
>   <svg
>     xmlns               = "http://www.w3.org/2000/svg"
>     version             = "1.2"
>   >
>   <text y = '100' font-size='50'>
>     <tspan onload="alert(evt.target.getComputedTextLength())"
>     >Scalable Vector Graphics</tspan>
>   </text>
>   </svg>
>
>does not work reliably, especially when re-loading the document, most
>of the time a computed text length of 0 will be reported. Sometimes an
>accurate length is reported though, so maybe you've hit some kind of
>race condition. Adobe SVG Viewer 3.0x is subject to the same problem as
>far as I can tell.

This is certainly a bug. It should report correct length.


>[snip]
>--
>Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
>Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
>68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
Received on Wednesday, 12 January 2005 17:52:13 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:29 GMT