Spacing

In the review of the terminology of typography at the beginning of this chapter, the differences between kerning and letter spacing were discussed. SVG offers control over both; however, specific control over kerning is more complex than the subject matter of this book permits. Hence, the more common and easy-to-apply alteration, spacing, will be covered in this book.

If you're truly a typographic fanatic, review the second exercise at the end of this chapter for a quick and dirty method of kerning between letter pairs. Or, if you'd like to learn more about SVG's defined method of kerning, read Chapter 20.7 of the W3C SVG Recommendation, “The hkern and vkern elements.”

As mentioned earlier, there are two types of spacing in SVG: letter ...

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.