liveBook · Manning

Font

As explained in Web Design Playground

A distinctive design of letters, numbers, and symbols that gives a set of characters a particular visual style.

Think of a typeface as the architecture of letters: its shapes give related letters, numbers, and symbols a recognizable look. In everyday use, “font” and “typeface” are often interchangeable. More precisely, a font is a typeface rendered at a particular size, weight, and style: Helvetica is a typeface; Helvetica 16-point bold is a font. section 4.2

Serif —A serif (rhymes with sheriff) typeface contains fine cross strokes (called feet) at the extremities of each character. These subtle appendages give the typeface a traditional, classy look, but they can get lost when displayed on a screen at small sizes. 04_table_01.png
Sans serif —A sans-serif typeface doesn't contain cross strokes on the extremities of characters. These typefaces usually have a clean, modern look that’s well suited to screen text, particularly at small sizes. 04_table_02.png
Monospace —A monospace typeface (also called a fixed-width typeface) uses the same amount of space for each character, so skinny letters such as i and l take up as much space as wider letters such as m and w. 04_table_03.png
Cursive —The cursive typefaces are designed to resemble handwritten pen or brush writing. 04_table_04.png
Fantasy —Fantasy typefaces usually are fanciful designs that have some extreme elements (such as being extra-thick). 04_table_05.png

Compare five common typeface categories by their letter shapes, then consider where each might work on a screen. section 4.2

Choosing type for a web page? Start with the job each bit of text has to do.

  • For body text and small captions, favor clear, readable shapes; sans serif is often a good starting point. section 4.2 section 15.4
  • For headings, try a contrasting typeface. A cursive face can lend a short heading a handwritten feel. section 15.4 section 20.3
  • For code listings, try monospace; save fantasy faces for special effects. section 4.2

Put the choice into CSS

Use `font-family: cursive;` for a handwritten-style heading. For links or captions, `font-family: Optima, Calibri, sans-serif;` lists the desired families and ends with the broader sans-serif category. section 15.4 section 4.2

On a small screen, looks alone aren't enough. When previewing type in Google Fonts, check for roomy spaces inside letters, a substantial lowercase height, and strokes that don't become extremely thin. Try typing your own heading and a paragraph: can you read both comfortably? section 20.3

How Web Design Playground covers it

How deep it goes
Defines font versus typeface, distinguishes five categories, and gives practical selection criteria without detailing font-file internals.
Examples
Uses Helvetica 16-point bold, photo-gallery CSS declarations, and Google Fonts previews to make type choices concrete.
What it assumes
Defines typeface and font before introducing CSS font-family.
What you can do after
Apply it via CSS font-family to choose type for different page roles and evaluate readability on small screens.
How it connects
Connects typeface choice to CSS font-family, typography, legibility, and responsive screen reading.

Also explained in

Compare how 6 books explain font →

Related concepts

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