Share this Page URL
Help

Chapter 5. Fonts > Font Families - Pg. 96

CSS attempts to provide some resolution mechanisms for all these font questions, al- though it cannot provide a complete solution. The most complicated parts of font handling in CSS are font family matching and font weight matching, with font size calculations running a close third. The font aspects addressed by CSS are font styles, such as italics, and font variants, such as small caps; these are much more straightfor- ward, relatively speaking. These various aspects of font styling are all brought together in a single property, font , which we'll discuss later in this chapter. First, let's discuss font families, since they're the most basic step in choosing the right font for your docu- ment. Font Families Although there are, as was discussed earlier, a number of ways to label what is effectively the same font, CSS makes a valiant attempt to help user agents sort out the mess. After all, what we think of as a "font" may be composed of many variations to describe boldfacing, italic text, and so forth. For example, you're probably familiar with the font Times. However, Times is actually a combination of many variants, including Time- sRegular, TimesBold, TimesItalic, TimesOblique, TimesBoldItalic, TimesBoldObli- que, and so on. Each of these variants of Times is an actual font face, but Times, as we usually think of it, is a combination of all these variant faces. In other words, Times is actually a font family, not just a single font, even though most of us think about fonts as being single entities.