Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Crafting Efficient Type Systems for the Web

Crafting Efficient Type Systems for the Web

Typography on the Web has come a long way since font properties were first specified in CSS. Since then we've been facing new creative opportunities through @font-face and increasing OpenType support, but also new challenges, like managing webfont performance.

This talk re-evaluates the ways we select, combine and prepare fonts for the Web to create beautiful and performant typographic designs.

Frederic Marx

April 28, 2016
Tweet

Other Decks in Design

Transcript

  1. FOUT is not great but it’s better than up to

    30 seconds without text content
  2. “If even a small percentage of people don’t consume your

    content due to a use of webfonts, your typography is failing.” — Adam Morse
  3. 3 Rules of Responsible Webfont Use 1. Use system fonts

    where possible 2. Keep your webfont payload as small as possible 3. Use a progressive font loading strategy
  4. “The font-family property value is a prioritized list of font

    family names and/or generic family names.” https://www.w3.org/wiki/CSS/Properties/font-family
  5. Usable: serif, sans-serif, monospace Inconsistent: cursive, fantasy Bad browser support:

    caption, icon, menu, message-box, small-caption, status-bar
  6. “If text with InDesign is typesetting, a browser is more

    like typesuggesting.” — @jasonsantamaria
  7. Web design: A set of suggestions for the browser to

    handle circumstances no designer can predict
  8. Mac & iOS Seravek, 2007, Eric Olson (Mac OS only)

    Hoefler Text, 1991, Jonathan Hoefler Avenir, 1988, Adrian Frutiger
  9. 3 Rules of Responsible Webfont Use 1. Use system fonts

    where possible ✅ 2. Keep your webfont payload as small as possible 3. Use a progressive font loading strategy
  10. Important metrics for performance budgets 1. Page Weight (kb/mb) 2.

    Start Render (s) 3. Fully Loaded (s) Source: https://speakerdeck.com/katiekovalcin/the-path-to-performance
  11. If a feature or asset breaks the performance budget 1.

    Optimize an existing feature or asset on the page 2. Remove an existing feature or asset from the page. 3. Don’t add the new feature or asset. Source: http://fsm.bdconf.com/podcast/web-performance
  12. Step 0 Does the font fulfill all technical requirements? Are

    all characters present? Language specific special characters, currency symbols, etc. What are the licensing conditions?
  13. If you’re not sure whether a font is good, …

    …find out the circumstances under which it was made …check if it was released by a reputable foundry …ask a consultant or your font retailer
  14. 1 Serif Humanist, Realist, Rational, Variants, Decorative 2 Sans Humanist,

    Grotesque, Geometric, Variants, Decorative 3 Slab Humanist, Rational, Geometric, Variants, Decorative 4 Script Chancery, Roundhand, Handwritten, Decorative 5 Blackletter 6 Pi Classification
  15. “We don’t need all members of a large family; we

    need large families to pick the members that work for the project.” — Indra Kupferschmid 100besttypefaces.com
  16. Typography is the craft of endowing human language with a

    durable visual form. Merriweather with Merriweather Sans Bold
  17. Typography is the craft of endowing human language with a

    durable visual form. Merriweather Sans with Merriweather Italic
  18. You can provide multiple files for one font. Always include

    the best format available (currently WOFF2)
  19. 3 Rules of Responsible Webfont Use 1. Use system fonts

    where possible ✅ 2. Keep your webfont payload as small as possible ✅ 3. Use a progressive font loading strategy
  20. Progressive font loading 1. Apply basic styles without webfonts 2.

    Load webfonts progressively 3. Apply enhanced styles when webfonts become available
  21. CSS Font Loading Module Level 3 W3C Standard for authoring

    font loading behavior (Editor’s Draft, 13 April 2016)
  22. CSS Font Loading Module Level 3 Chrome 35 – 46,

    Firefox 41 – 42, Opera 22 – 33 http://stateofwebtype.com/#loading
  23. Can be combined with other Web APIs like Service Worker

    or Local Storage to create custom font loading solutions
  24. 3 Rules of Responsible Webfont Use 1. Use system fonts

    where possible ✅ 2. Keep your webfont payload as small as possible ✅ 3. Use a progressive font loading strategy ✅
  25. “Proper measure. Appropriate leading. Accessible contrast. A well thought out

    type-scale. All more valuable to your readers than webfonts.” — Adam Morse
  26. “Beauty, legibility, subtlety, these are the qualities that are possible

    with the help of web fonts and without them we are left with a dismal landscape devoid of visual grace or wit.” — Robin Rendle
  27. A visitor from a search result or social link has

    different needs than a regular visitor