O'Reilly logo

Sams Teach Yourself SVG in 24 Hours by Micah Laaker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Q&A

Q1: I really need my text to wrap automatically. Is there truly no way for SVG to handle this?
A1: The technology itself is not really capable of managing this function. However, SVG developer Kevin Lindsey has posted a method that accomplishes this on some level. You can access his examples and documentation at http://www.kevlindev.com. Even if you are uninterested in text wrapping, Lindsey provides some amazing examples of the possibilities of SVG.
Q2:How do I change the color of my text?
A2: The text element and its child elements (tspan and textPath) accept the same fill and stroke style properties as any other SVG object. Apply fill and stroke classes to text elements the same as you would to any other object.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required