W3C home > Mailing lists > Public > www-svg@w3.org > August 2008

Re: SVG "Text Box"

From: Jeff Schiller <codedread@gmail.com>
Date: Wed, 27 Aug 2008 13:51:54 -0500
Message-ID: <da131fde0808271151m1a8b7c2fu588cce6caf6fe3c4@mail.gmail.com>
To: brutfood@yahoo.com
Cc: www-svg@w3.org

Daniel,

It's a SVGT 1.2-only feature:
http://www.w3.org/TR/SVGMobile12/text.html#TextInAnArea

The only desktop browser that supports this that I'm aware of is Opera
- so I haven't played with it much on the web.

The other (perhaps better) option is to use foreignObject with HTML inside.

Regards,
Jeff

On 8/26/08, Daniel Freeman <brutfood@yahoo.com> wrote:
>
>  Is it possible to represent text within an svg document as if inside (an invisible) textbox? So that the text wraps onto the next line when it hits the end of the box? (Automatically, without specifying line-breaks or character positions).  I looked at the svg specification, but I couldn't see a way to do this.
>
>
>       Win a MacBook Air or iPod touch with Yahoo!7. http://au.docs.yahoo.com/homepageset
>
>
>
Received on Wednesday, 27 August 2008 18:52:35 GMT

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