
When none of the specified fonts can be selected. Preserving some of the style sheet author's intent in the worst case Generic font families are a fallback mechanism, a means of Not consider these keywords as matching the '' The keywords 'initial' and 'default' are reserved forįuture use and must also be quoted when used as font names. 'cursive') must be quoted to prevent confusion with the keywords with Value ('inherit', 'serif', 'sans-serif', 'monospace', 'fantasy', and Unlike most other CSS properties, component values are separatedīy a comma to indicate that they are alternatives:īody įont family names that happen to be the same as a keyword The property value is a prioritized list of font family names Media: visual Computed value: as specified 'font-family' Value: * ] | inherit Initial: depends on user agent (Typically, sizes for scalable fontsĪre rounded to the nearest whole pixel, while the tolerance forīitmapped fonts could be as large as 20%.) Further computations, e.g.,īy 'em' values in other properties, are based onġ5.3 Font family: the 'font-family' property That is only available as small-caps shall be selectable as either a 'normal' face or a 'small-caps' face. A font cannot fail to have a normal variant. 'normal' matches a font's normal (non-small-caps) variant. A small-caps font may be synthesized byĮlectronically scaling uppercase letters from a normal font. Synthesized, or (3) a font where all lowercase letters are replaced by 'Small-caps' matches (1) aįont labeled as 'small-caps', (2) a font in which the small caps are Otherwise the values must be matched exactly or font-style will fail. Labeled with the CSS keyword 'italic' (preferred) or 'oblique'. Will be satisfied if there is either a face in the UA's font database

The per-property matching rules from (2) above are as follows: The CSS 2.1 properties for each character.) (The above algorithm can be optimized to avoid having to revisit The UA should mapĮach character for which it has no suitable font to a visible symbolĬhosen by the UA, preferably a "missing character" glyph from one of the Means to determine a suitable font for that character. If a particularĬharacter cannot be displayed using this font, then the UA may use other Match that can be obtained within the default font. UA-dependent default 'font-family' and repeat step 2, using the best

Processed by step 2, and if there is a next alternative 'font-family'

The remaining properties are testedĪgainst the family according to the matching criteria described withĮach property. Using theĬomplete set of properties, the UA uses the 'font-family' property toĬhoose a tentative font family.

Please, see "Cascading Style Sheets (CSS) - The Official Definition" in the latest CSS Snapshot for a list of specifications and the sections they replace. Note: Several sections of this specification have been updated by other specifications.
