O'Reilly logo

HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition by Bruce Hyslop, Elizabeth Castro

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

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 ...

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