Including Text in Your Document
Text in SVG is handled considerably differently than in HTML. The name HTML (Hypertext Markup Language) alone suggests considerable concern as to the handling of text; the name SVG (Scalable Vector Graphics) suggests an emphasis elsewhere. Whereas HTML is focused on formatting text, with the addition of graphics as a postscript to the language, SVG focuses largely on the precise visual presentation of content, whether it is graphics or text.
SVG's attention to detail in how it displays its text comes at a price. Whereas the vagaries of HTML allow massive amounts of text to be freely formed and resized according to the user's environment, SVG requires precise coordinates for each line of text. This level of control ...
Get Sams Teach Yourself SVG in 24 Hours now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.