How do font-family fallbacks work when a preferred font is unavailable?
Quick answer
A font-family list gives the browser preferred font families in order. If an earlier named family is unavailable, the browser can use a later one; it may also choose a fallback for an individual character a font cannot display. End the list with a generic family such as sans-serif or serif to preserve a broad typographic intent. Because the substitute can differ in letter shapes and widths, check both appearance and line wrapping. [S1]
The question, the details, the next step.
A practical checklist
Put preferred named font families before less-preferred choices.
End the list with a generic family that matches the intended broad style.
Treat generic families as categories, not as specific font names.
Inspect real paragraphs and headings for changed glyphs, spacing, and line breaks.
Record the font stack and the exact text or layout change you observed.
A few more useful answers
Does a generic family guarantee the same appearance on every device?
No. A generic family names a broad category, and the actual font chosen for it depends on the user’s environment. [S1]
Why does only one character look different?
Font selection can happen character by character if a font lacks a needed glyph. Check the character and the declared fallbacks, but do not infer the exact selected font from appearance alone. [S1]
Sources
References used for this guide.
- [S1] MDN: CSS font-family property and prioritized font lists developer.mozilla.org · Checked
