Exercise 3 solution: a type family sampler =========================================== Save as sampler.html and open it in a browser. (This page was not tested in several browsers: how it looks depends on which of the named fonts your machine has. That dependency is part of what the exercise shows.)
Serif: pack my box with five dozen liquor jugs.
Sans-serif: pack my box with five dozen liquor jugs.
Slab: pack my box with five dozen liquor jugs.
Script: pack my box with five dozen liquor jugs.
Display: pack my box with five dozen liquor jugs.
Monospace: pack my box with five dozen liquor jugs.
Regular 400
Bold 700
Italic 400
Bold italic 700
Arial Black, italic requested: faked if the family has no italic.
Same, with font-synthesis: none: shows only what the font really has.
What you should see, and why ----------------------------- * Each line opens with a named font and ends with a generic name, so the browser always has a fallback. Remove the first fonts from a list to see the fallback in action. * Georgia's four rows show weight and style together: the italic has redrawn letters (a single-storey a), not just a tilt. * The last pair is the interesting one: the browser can slant a font for you, but it is a tilt, not a designed italic. (What the browser does with font-synthesis: none for each font is worth checking on your own machine: it depends on which fonts and weights are installed.) * A common mistake the page avoids: using cursive and fantasy as if they were reliable. Here they are only at the end of a list, and the script and display lines name real fonts first.