• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 8. Laying Out Text in SVG > Text Layout Tasks in SVG

Text Layout Tasks in SVG

In the various parts of this section, we will look at several text layout issues and how they are solved using an appropriate combination of the text, tspan, and tref elements and their attributes and properties.

Indenting and Outdenting Text

As well as the x attribute, there is also a dx attribute, which allows relative positioning in a horizontal direction. You can use the dx attribute to indent or outdent text. Listing 8.7 shows an example.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint