While you can specify whichever font you want, your visitors will only see that font if they, too, have it installed on their computer. So, it's a good idea to use fonts that you can reasonably expect them to have. If the font you want comes on both Mac and Windows, you can feel pretty safe simply specifying that font. If the font has different names on each system, you can specify both names and each OS will use the one it has installed. If the font you want only comes with one operating system, you can choose an alternate font for the other system, that may or may not match exactly. Finally, if the font you want doesn't come preinstalled on either computer system, you may want to specify alternate standard fonts for both operating systems. Figure 10.5. The font-family property lets you include alternate fonts that the browser should use if the system does not have the first one installed. In this case, we can tell the browser to look for Palatino on systems that don't have Palatino Linotype installed.
To specify alternate fonts:
Figure 10.6. Systems that have Palatino Linotype installed will continue to use that font.
Tips
|