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

Hour 16. Formatting > Text Boxes

Text Boxes

Having successfully created multiline text, try selecting the text within your viewer's window. Just as in HTML, when your cursor nears text, it changes to an I-beam cursor, allowing you to select the type. You will notice in this case, though, that you are capable of selecting only one line of text, not both. This is because SVG viewers consider each text element to be a unique and independent chunk of text.

Naturally, you will have instances where you will want to create a continuous chunk of text (such as a paragraph to allow users to select and copy the whole text). To accommodate this, SVG offers a text subelement: tspan. The tspan element serves as a child of a master text element. This means that you can insert multiple tspan elements within one text element, and an SVG viewer will render them as one continuous block of text.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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