O'Reilly logo

Designing SVG Web Graphics by Andrew H. Watt

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

Fonts

SVG can be used for the presentation of both free-standing blocks of text (which are displayed similarly to HTML text) and text that partly forms graphics. In both types of uses, the graphic designer must have control over the appearance of the text onscreen.

For these types of situations, a designer needs to know that the chosen font, or something similar to it, is available to create the desired visual appearance whether or not that font has been installed on the user’s computer. One option is to use the font-family property to specify a list of fonts, in the order of most desirable first, which the SVG viewer should use to render the applicable text.

However, on some occasions, particularly if a specific artistic appearance is sought, ...

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