Specifying Alternate Fonts

Although you can specify whichever font you want, your visitors will see that font only if they have it installed on their computer. So, it’s best to use fonts that you can reasonably expect them to have. There is a small list of fonts that both Windows and Mac OS have by default (see the next sidebar for details).

Then there are the other cases to consider. If the font has different names on each system, you can specify both names, and each OS will use the one it has installed. Similarly, if the font you want only comes on one operating system, you can choose an alternate font for the other system. It may or may not match exactly, but the goal is to specify a font that’s as close as possible. Finally, it’s best to ...

Get HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.