Web Typography Workshop

54d5fa57f499bd09aa3b713bc7fdbe37?s=47 Steve Hickey
February 12, 2015

Web Typography Workshop

54d5fa57f499bd09aa3b713bc7fdbe37?s=128

Steve Hickey

February 12, 2015
Tweet

Transcript

  1. Steve Hickey GDI Boston Web Typography Workshop

  2. Why does typography even matter?

  3. Because I said so.

  4. Actually…

  5. When Everything Works…

  6. …When Images/Fonts Fail…

  7. …And When It All Fails

  8. Type As Brand Expression (demo borrowed from Jason Pamental: goo.gl/JRHqGe)

  9. Type As Brand Expression (demo borrowed from Jason Pamental: goo.gl/JRHqGe)

  10. 1: Basics

  11. Typeface vs. Font

  12. Typeface vs. Font

  13. Classification: Serif Aa Aa Baskerville (transitional) Caslon (humanist) Bodoni (modern)

    Aa
  14. Classification: Sans-serif Aa Aa Aa Helvetica (transitional) Gill Sans (humanist)

    Futura (modern)
  15. Classification: Slab-serif Aa Clarendon

  16. Classification: Script Aa Monotype Corsiva

  17. Classification: Display Aa Braggadocio

  18. Basic Anatomy Descender height Bhpxff Baseline X height Cap height

    Stem Descender Ascender Counter Ligature
  19. Normal Letter-spacing I confess at these words a shudder passed

    through me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Holmes leaned forward in his excitement and his eyes had the hard, dry glitter which shot from them when he was keenly interested.
  20. Tight Letter-spacing I confess at these words a shudder passed

    through me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Holmes leaned forward in his excitement and his eyes had the hard, dry glitter which shot from them when he was keenly interested.
  21. Loose Letter-spacing I confess at these words a shudder passed

    through me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Holmes leaned forward in his excitement and his eyes had the hard, dry glitter which shot from them when he was keenly interested.
  22. Don't letter-space the lower case.

  23. Ever.

  24. Seriously.

  25. Un-Kerned Tyson

  26. Kerned yson T

  27. Left Aligned I confess at these words a shudder passed

    through me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Holmes leaned forward in his excitement and his eyes had the hard, dry glitter which shot from them when he was keenly interested.
  28. Right Aligned I confess at these words a shudder passed

    through me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Holmes leaned forward in his excitement and his eyes had the hard, dry glitter which shot from them when he was keenly interested.
  29. Center Aligned I confess at these words a shudder passed

    through me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Holmes leaned forward in his excitement and his eyes had the hard, dry glitter which shot from them when he was keenly interested.
  30. Justified I confess at these words a shudder passed through

    me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Holmes leaned forward in his excitement and his eyes had the hard, dry glitter which shot from them when he was keenly interested.
  31. The Trinity: Size I confess at these words a shudder

    passed through me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Holmes leaned forward in his excitement and his eyes had the hard, dry glitter which shot from them when he was keenly interested.
  32. Too Small I confess at these words a shudder passed

    through me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Holmes leaned forward in his excitement and his eyes had the hard, dry glitter which shot from them when he was keenly interested.
  33. The Trinity: Line Length I confess at these words a

    shudder passed through me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Holmes leaned forward in his excitement and his eyes had the hard, dry glitter which shot from them when he was keenly interested.
  34. Too Wide I confess at these words a shudder passed

    through me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Holmes leaned forward in his excitement and his eyes had the hard, dry glitter which shot from them when he was keenly interested. On the night of Sir Charles’s death Barrymore the butler, who made the discovery, sent Perkins the groom on horseback to me, and as I was sitting up late I was able to reach Baskerville Hall within an hour of the event. I checked and corroborated all the facts which were mentioned at the inquest. I followed the footsteps down the Yew Alley, I saw the spot at the moor-gate where he seemed to have waited, I remarked the change in the shape of the prints after that point, I noted that there were no other footsteps save those of Barrymore on the soft gravel, and finally I carefully examined the body, which had not been touched until my arrival. Sir Charles lay on his face, his arms out, his fingers dug into the ground, and his features convulsed with some strong emotion to such an extent that I could hardly have sworn to his identity. There was certainly no physical injury of any kind. But one false statement was made by Barrymore at the inquest. He said that there were no traces upon the ground round the body. He did not observe any. But I did—some little distance off, but fresh and clear.
  35. Too Narrow I confess at these words a shudder passed

    through me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Holmes leaned forward in his excitement and his eyes had the hard, dry glitter which shot from them when he was keenly interested.
  36. The Trinity: Line-Height I confess at these words a shudder

    passed through me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Holmes leaned forward in his excitement and his eyes had the hard, dry glitter which shot from them when he was keenly interested.
  37. Too Little I confess at these words a shudder passed

    through me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Holmes leaned forward in his excitement and his eyes had the hard, dry glitter which shot from them when he was keenly interested.
  38. Too Much I confess at these words a shudder passed

    through me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Holmes leaned forward in his excitement and his eyes had the hard, dry glitter which shot from them when he was keenly interested.
  39. Size, line-length and line-height create readable text.

  40. Changing one affects the others.

  41. 2: Hierarchy

  42. Pairing Typefaces The quick brown fox jumped over the lazy

    dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. Bodoni Futura Helvetica Garamond Baskerville Univers
  43. Typeface I confess at these words a shudder passed through

    me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Holmes leaned forward in his excitement and his eyes had the hard, dry glitter which shot from them when he was keenly interested. This heading blends into the paragraph below it.
  44. Typeface I confess at these words a shudder passed through

    me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Holmes leaned forward in his excitement and his eyes had the hard, dry glitter which shot from them when he was keenly interested. This heading stands out.
  45. Scale I confess at these words a shudder passed through

    me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Holmes leaned forward in his excitement and his eyes had the hard, dry glitter which shot from them when he was keenly interested. This heading blends into the paragraph below it.
  46. Scale I confess at these words a shudder passed through

    me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Holmes leaned forward in his excitement and his eyes had the hard, dry glitter which shot from them when he was keenly interested. This heading stands out.
  47. Color I confess at these words a shudder passed through

    me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Holmes leaned forward in his excitement and his eyes had the hard, dry glitter which shot from them when he was keenly interested. This heading blends into the paragraph below it.
  48. Color I confess at these words a shudder passed through

    me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Holmes leaned forward in his excitement and his eyes had the hard, dry glitter which shot from them when he was keenly interested. This heading stands out.
  49. Style I confess at these words a shudder passed through

    me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Holmes leaned forward in his excitement and his eyes had the hard, dry glitter which shot from them when he was keenly interested. This heading blends into the paragraph below it.
  50. Style I confess at these words a shudder passed through

    me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Holmes leaned forward in his excitement and his eyes had the hard, dry glitter which shot from them when he was keenly interested. This heading stands out.
  51. Placement I confess at these words a shudder passed through

    me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Holmes leaned forward in his excitement and his eyes had the hard, dry glitter which shot from them when he was keenly interested. This heading blends into the paragraph below it.
  52. Placement I confess at these words a shudder passed through

    me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Holmes leaned forward in his excitement and his eyes had the hard, dry glitter which shot from them when he was keenly interested. This heading stands out.
  53. Rule of Thumb: One or two points of differentiation.

  54. Subtlety is the key.

  55. 3: Choice

  56. Number of Styles The quick brown fox jumped over the

    lazy dog. Sorts Mill Goudy The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. Adobe Caslon Pro The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog.
  57. Character Sets abcdefghijklmnopqrstuvwxyz Latin абвгдеёжзийклмнопрстуфхцчшщъыьэюя αβγδεζηθικλμνξοπρσςτυφχψω Cyrillic Greek

  58. Numerals 123456789 Lowercase 123456789 Uppercase

  59. Proper Punctuation - Hyphen “ ” Smart quotes ' '

    ˝ Dumb quotes Primes – — En dash Em dash
  60. Ligatures They flew stuff They flew stuff No ligatures Ligatures

  61. Legibility I confess at these words a shudder passed through

    me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Holmes leaned forward in his excitement and his eyes had the hard, dry glitter which shot from them when he was keenly interested.
  62. Legibility I confess at these words a shudder passed through

    me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Holmes leaned forward in his excitement and his eyes had the hard, dry glitter which shot from them when he was keenly interested.
  63. Legibility I Lowercase l Uppercase i Numeral 1 l 1

  64. Readability I confess at these words a shudder passed through

    me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Holmes leaned forward in his excitement and his eyes had the hard, dry glitter which shot from them when he was keenly interested.
  65. Readability I confess at these words a shudder passed through

    me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Holmes leaned forward in his excitement and his eyes had the hard, dry glitter which shot from them when he was keenly interested.
  66. Appropriateness I confess at these words a shudder passed through

    me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Holmes leaned forward in his excitement and his eyes had the hard, dry glitter which shot from them when he was keenly interested.
  67. Appropriateness I confess at these words a shudder passed through

    me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Holmes leaned forward in his excitement and his eyes had the hard, dry glitter which shot from them when he was keenly interested.
  68. My Google Web Fonts trick…

  69. Exercise 1

  70. Choose two different typefaces and create a simple typographic hierarchy

    with them. You must use three different heading levels and two paragraph sizes. I’d recommend giving Typecast a try for this exercise: http://typecast.com
  71. 4: Implementation

  72. Web Font Services Fonts

  73. Adobe Typekit

  74. Adobe Typekit: Kits

  75. Adobe Typekit: Domains

  76. Detour: Using the Terminal $ cd ~/Sites/gdi-type-workshop/ $ php -S

    localhost:4000 or $ cd ~/Sites/gdi-type-workshop/ $ python -m SimpleHTTPServer 4000
  77. Adobe Typekit: Install

  78. Adobe Typekit: Using in CSS

  79. Adobe Typekit: Kit Settings

  80. Adobe Typekit: Subsetting

  81. Adobe Typekit: OpenType

  82. Adobe Typekit: Weights & Styles

  83. Google Fonts

  84. Google Fonts: Quick Use

  85. Google Fonts: Weights & Styles

  86. Google Fonts: Weights & Styles

  87. Google Fonts: Weights & Styles

  88. Google Fonts: Weights & Styles

  89. Google Fonts: Use

  90. Using @font-face

  91. Fullest @font-face Possible @font-face { font-family: proxima-nova-regular; src: url("../fonts/proxima-nova-regular.eot"); src:

    url("../fonts/proxima-nova-regular.eot?#iefix") format("embedded-opentype"), url("../fonts/proxima-nova-regular.woff2") format("woff2"), url("../fonts/proxima-nova-regular.woff") format("woff"), url("../fonts/proxima-nova-regular.ttf") format("truetype"), url("../fonts/proxima-nova-regular.svg#proxima-nova-regular") format("svg"); font-weight: 400; font-style: normal; }
  92. Repeat For Every Font @font-face { font-family: proxima-nova-regular; src: url("../fonts/proxima-nova-regular.eot");

    src: url("../fonts/proxima-nova-regular.eot?#iefix") format("embedded-opentype"), url("../fonts/proxima-nova-regular.woff2") format("woff2"), url("../fonts/proxima-nova-regular.woff") format("woff"), url("../fonts/proxima-nova-regular.ttf") format("truetype"), url("../fonts/proxima-nova-regular.svg#proxima-nova-regular") format("svg"); font-weight: 400; font-style: normal; } @font-face { font-family: proxima-nova-regular-italic; src: url("../fonts/proxima-nova-regular-italic.eot"); src: url("../fonts/proxima-nova-regular-italic.eot?#iefix") format("embedded-opentype"), url("../fonts/proxima-nova-regular-italic.woff2") format("woff2"), url("../fonts/proxima-nova-regular-italic.woff") format("woff"), url("../fonts/proxima-nova-regular-italic.ttf") format("truetype"), url("../fonts/proxima-nova-regular-italic.svg#proxima-nova-regular-italic") format("svg"); font-weight: 400; font-style: italic; } @font-face { font-family: proxima-nova-bold; src: url("../fonts/proxima-nova-bold.eot"); src: url("../fonts/proxima-nova-bold.eot?#iefix") format("embedded-opentype"), url("../fonts/proxima-nova-bold.woff2") format("woff2"), url("../fonts/proxima-nova-bold.woff") format("woff"), url("../fonts/proxima-nova-bold.ttf") format("truetype"), url("../fonts/proxima-nova-bold.svg#proxima-nova-bold") format("svg"); font-weight: 700; font-style: normal; } @font-face { font-family: proxima-nova-bold-italic; src: url("../fonts/proxima-nova-bold-italic.eot"); src: url("../fonts/proxima-nova-bold-italic.eot?#iefix") format("embedded-opentype"), url("../fonts/proxima-nova-bold-italic.woff2") format("woff2"), url("../fonts/proxima-nova-bold-italic.woff") format("woff"), url("../fonts/proxima-nova-bold-italic.ttf") format("truetype"), url("../fonts/proxima-nova-bold-italic.svg#proxima-nova-bold-italic") format("svg"); font-weight: 700; font-style: italic; }
  93. I KNOW, RIGHT?

  94. Fullest @font-face Support

  95. Now Let's Slim It Down @font-face { font-family: proxima-nova-regular; src:

    url("../fonts/proxima-nova-regular.woff2") format("woff2"), url("../fonts/proxima-nova-regular.woff") format("woff"); font-weight: 400; font-style: normal; }
  96. WOFF Support

  97. WOFF2 Support

  98. WOFF/WOFF 2 is much more manageable.

  99. Older browsers just get your fallbacks.

  100. Calling a Font Family body { font-family: Alegreya; } h1

    { font-family: "Alegreya Sans"; }
  101. Falling Back to Defaults body { font-family: Alegreya, Georgia, serif;

    } h1 { font-family: "Alegreya Sans", Arial, sans-serif; }
  102. Solving Faux Bold and Italic body { font-family: alegreya, Georgia,

    serif; font-weight: normal; font-weight: 400; font-style: normal; } h1 { font-family: alegreya-sans-bold, sans-serif; font-weight: bold; font-weight: 700; font-style: normal; }
  103. Setting Text Size body { font-size: 100%; } /* usually

    = 16px */ h1 { font-size: 3em; } /* 3×16px = 48px */ h2 { font-size: 1.5em; } /* 1.5×16px = 24px */ p { font-size: 1em; } /* 1×16px = 16px */
  104. Ems Are Tricksy body { font-size: 100%; } /* usually

    = 16px */ p { font-size: 1.5em; } /* 1.5×16px = 24px */ .caption { font-size: 1em; } /* 1×24px = 24px */
  105. Rems Are Nicer… body { font-size: 100%; } /* usually

    = 16px */ p { font-size: 1.5rem; } /* 1.5×16px = 24px */ .caption { font-size: 1rem; } /* 1×16px = 16px */
  106. Rem Support

  107. …But, You Need a Fallback body { font-size: 100%; }

    /* usually = 16px */ p { font-size: 24px; font-size: 1.5rem; } /* 1.5×16px = 24px */ .caption { font-size: 16px; font-size: 1rem; } /* 1×16px = 16px */
  108. Setting Line-Height body { font-size: 100%; line-height: 1.6; } /*

    1.6×16px ≈ 26px */ h1 { font-size: 3em; line-height: inherit; } /* 1.6×48px ≈ 77px */ p { font-size: 1em; line-height: inherit; } /* 1.6×16px ≈ 26px */
  109. http://modularscale.com

  110. Baseline Grids I confess at these words a shudder passed

    through me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Heading Level 1 Heading Level 2 I confess at these words a shudder passed through me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. HEADING LEVEL 3 I confess at these words a shudder passed through me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us.
  111. Setting a baseline grid is very frustrating.

  112. Target Adjacent Siblings p { font-size: 1em; /* 16px */

    line-height: 1.5; /* 24px */ margin-bottom: 1.5em; } /* 24px */ h1 { font-size: 2em; /* 32px */ line-height: 1.5; } /* 48px */ h2 { font-size: 1.5em; /* 24px */ line-height: 1; } /* 24px */ h1 + h2 { margin-bottom: -.625em; }
  113. GridOverlay Plugin http://freshtilledsoil.github.io/gridOverlay/

  114. You've been warned.

  115. – En dash – ’ Right single quote ’ “

    ” Left double quote “ Right double quote ” — ´ Em dash — Single prime ′ HTML Entities http://www.freeformatter.com/html-entities.html & Ampersand & ‘ Left single quote ‘ … Ellipsis … ˝ Double prime ″
  116. Responsive Type: Wide Viewport I confess at these words a

    shudder passed through me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Heading Level 1 Heading Level 2 I confess at these words a shudder passed through me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. HEADING LEVEL 3 I confess at these words a shudder passed through me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us.
  117. Responsive Type: Narrow Viewport I confess at these words a

    shudder passed through me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Heading Level 1 Heading Level 2 HEADING LEVEL 3 I confess at these words a shudder passed through me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. I confess at these words a shudder passed through me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. I confess at these words a shudder passed through me. There was a thrill in the doctor’s voice which showed that he was himself deeply moved by that which he told us. Heading Level 1 Heading Level 2 I confess at these words a
  118. OpenType: /* no OpenType features (default) */ font-feature-settings: normal; /*

    enable small caps */ font-feature-settings: “smcp”; /* enable small caps (explicitly on) */ font-feature-settings: “smcp” on; /* use 2nd available swash character */ font-feature-settings: “swsh” 2; /* disable ligatures */ font-feature-settings: “liga” 0; /* use 1st swash and enable ligatures */ font-feature-settings: “swsh” 1, “liga” on;
  119. Support for OpenType Features

  120. 5: Resources

  121. Thinking With Type http://thinkingwithtype.com

  122. The Elements of Typographic Style http://webtypography.net

  123. Butterick's Practical Typography http://practicaltypography.com

  124. iA Writer Blog http://ia.net/blog

  125. Exercise 2

  126. We’re going to create another hierarchy, but this time you’ll

    be working with HTML/CSS in the browser. You must use at least two typefaces, demonstrate six levels of headings, two paragraph sizes, an image caption, and ordered/unordered lists. You must also demonstrate an alternative typographic scale for smaller viewports.