liveBook · Manning

System font

As explained in Web Design Playground, Second Edition

A system font is a typeface installed on a user's computer and available to that user's web browser.

A system font is a typeface installed on a user's computer and available to that user's web browser. CSS selects it with the font-family property. section 4.3 section 4.14

Use system fonts reliably by remembering these rules:

  • Put font names containing spaces, numbers, or punctuation other than hyphens in quotation marks; capitalization is optional but improves readability. section 4.3
  • List several families with commas. The browser checks them in order and uses the first installed family. section 18.2
  • Finish with a similar generic family such as serif, sans-serif, or monospace when possible. section 4.3 section 18.2

A dependable sans-serif choice

div { font-family: Verdana, sans-serif; } The browser uses Verdana when installed and otherwise falls back to a generic sans-serif. No font-related drama required. section 4.3

Backing up a less-common font

body { font-family: Optima, Calibri, sans-serif; } This stack prefers Optima, tries Calibri when Optima is unavailable, and then uses a generic sans-serif. section 10.3

How Web Design Playground, Second Edition covers it

How deep it goes
Explains installation-based selection, quoting, ordered font stacks, and generic fallbacks, but does not cover font loading internals.
Examples
Demonstrates Times New Roman, Georgia, Verdana, Optima, Calibri, and fallback stacks applied to page elements.
What you can do after
Apply system fonts through CSS font-family declarations with ordered fallbacks and matching generic families.
How it connects
Connects system fonts to the font-family property, font stacks, generic font families, and web browsers.

Also explained in

Compare how 2 books explain system font →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Web Design Playground, Second Edition. The section links point to the parts of the book it draws on.