Slide 1

Slide 1 text

Steve Hickey GDI Boston Web Typography Workshop

Slide 2

Slide 2 text

Why does typography even matter?

Slide 3

Slide 3 text

When Everything Works…

Slide 4

Slide 4 text

…When Images/Fonts Fail…

Slide 5

Slide 5 text

…And When It All Fails

Slide 6

Slide 6 text

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

Slide 7

Slide 7 text

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

Slide 8

Slide 8 text

1: Basics

Slide 9

Slide 9 text

Typeface vs. Font

Slide 10

Slide 10 text

Typeface vs. Font

Slide 11

Slide 11 text

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

Slide 12

Slide 12 text

Classification: Sans-serif Aa Aa Aa Helvetica (transitional) Gill Sans (humanist) Futura (modern)

Slide 13

Slide 13 text

Classification: Slab-serif Aa Clarendon

Slide 14

Slide 14 text

Classification: Script Aa Monotype Corsiva

Slide 15

Slide 15 text

Classification: Display Aa Braggadocio

Slide 16

Slide 16 text

Basic Anatomy Descender height Bhpxff Baseline X height Cap height Stem Descender Ascender Counter Ligature

Slide 17

Slide 17 text

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.

Slide 18

Slide 18 text

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.

Slide 19

Slide 19 text

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.

Slide 20

Slide 20 text

Don't letter-space the lower case.

Slide 21

Slide 21 text

Ever.

Slide 22

Slide 22 text

Seriously.

Slide 23

Slide 23 text

Un-Kerned Tyson

Slide 24

Slide 24 text

Kerned yson T

Slide 25

Slide 25 text

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.

Slide 26

Slide 26 text

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.

Slide 27

Slide 27 text

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.

Slide 28

Slide 28 text

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.

Slide 29

Slide 29 text

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.

Slide 30

Slide 30 text

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.

Slide 31

Slide 31 text

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.

Slide 32

Slide 32 text

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.

Slide 33

Slide 33 text

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.

Slide 34

Slide 34 text

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.

Slide 35

Slide 35 text

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.

Slide 36

Slide 36 text

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.

Slide 37

Slide 37 text

Size, line-length and line-height create readable text.

Slide 38

Slide 38 text

Changing one affects the others.

Slide 39

Slide 39 text

2: Hierarchy

Slide 40

Slide 40 text

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

Slide 41

Slide 41 text

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.

Slide 42

Slide 42 text

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.

Slide 43

Slide 43 text

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.

Slide 44

Slide 44 text

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.

Slide 45

Slide 45 text

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.

Slide 46

Slide 46 text

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.

Slide 47

Slide 47 text

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.

Slide 48

Slide 48 text

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.

Slide 49

Slide 49 text

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.

Slide 50

Slide 50 text

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.

Slide 51

Slide 51 text

Rule of Thumb: One or two points of differentiation.

Slide 52

Slide 52 text

Subtlety is the key.

Slide 53

Slide 53 text

3: Choice

Slide 54

Slide 54 text

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.

Slide 55

Slide 55 text

Character Sets abcdefghijklmnopqrstuvwxyz Latin абвгдеёжзийклмнопрстуфхцчшщъыьэюя αβγδεζηθικλμνξοπρσςτυφχψω Cyrillic Greek

Slide 56

Slide 56 text

Numerals 123456789 Lowercase 123456789 Uppercase

Slide 57

Slide 57 text

Proper Punctuation - Hyphen “ ” Smart quotes ' ' ˝ Dumb quotes Primes – — En dash Em dash

Slide 58

Slide 58 text

Ligatures They flew stuff They flew stuff No ligatures Ligatures

Slide 59

Slide 59 text

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.

Slide 60

Slide 60 text

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.

Slide 61

Slide 61 text

Legibility I Lowercase l Uppercase i Numeral 1 l 1

Slide 62

Slide 62 text

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.

Slide 63

Slide 63 text

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.

Slide 64

Slide 64 text

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.

Slide 65

Slide 65 text

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.

Slide 66

Slide 66 text

My Google Web Fonts trick…

Slide 67

Slide 67 text

4: Implementation

Slide 68

Slide 68 text

Web Font Services Fonts

Slide 69

Slide 69 text

Adobe Typekit

Slide 70

Slide 70 text

Adobe Typekit: Kits

Slide 71

Slide 71 text

Adobe Typekit: Domains

Slide 72

Slide 72 text

Detour: Using the Terminal $ cd ~/Sites/gdi-type-workshop/ $ php -S localhost:4000 or $ cd ~/Sites/gdi-type-workshop/ $ python -m SimpleHTTPServer 4000

Slide 73

Slide 73 text

Adobe Typekit: Install

Slide 74

Slide 74 text

Adobe Typekit: Using in CSS

Slide 75

Slide 75 text

Adobe Typekit: Kit Settings

Slide 76

Slide 76 text

Adobe Typekit: Subsetting

Slide 77

Slide 77 text

Adobe Typekit: OpenType

Slide 78

Slide 78 text

Adobe Typekit: Weights & Styles

Slide 79

Slide 79 text

Google Fonts

Slide 80

Slide 80 text

Google Fonts: Quick Use

Slide 81

Slide 81 text

Google Fonts: Weights & Styles

Slide 82

Slide 82 text

Google Fonts: Weights & Styles

Slide 83

Slide 83 text

Google Fonts: Weights & Styles

Slide 84

Slide 84 text

Google Fonts: Weights & Styles

Slide 85

Slide 85 text

Google Fonts: Use

Slide 86

Slide 86 text

Using @font-face

Slide 87

Slide 87 text

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; }

Slide 88

Slide 88 text

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; }

Slide 89

Slide 89 text

I KNOW, RIGHT?

Slide 90

Slide 90 text

Fullest @font-face Support

Slide 91

Slide 91 text

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; }

Slide 92

Slide 92 text

WOFF Support

Slide 93

Slide 93 text

WOFF2 Support

Slide 94

Slide 94 text

WOFF/WOFF 2 is much more manageable.

Slide 95

Slide 95 text

Older browsers just get your fallbacks.

Slide 96

Slide 96 text

Calling a Font Family body { font-family: Alegreya; } h1 { font-family: "Alegreya Sans"; }

Slide 97

Slide 97 text

Falling Back to Defaults body { font-family: Alegreya, Georgia, serif; } h1 { font-family: "Alegreya Sans", Arial, sans-serif; }

Slide 98

Slide 98 text

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; }

Slide 99

Slide 99 text

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 */

Slide 100

Slide 100 text

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 */

Slide 101

Slide 101 text

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 */

Slide 102

Slide 102 text

Rem Support

Slide 103

Slide 103 text

…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 */

Slide 104

Slide 104 text

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 */

Slide 105

Slide 105 text

Modular Scales goo.gl/Ot3XHa

Slide 106

Slide 106 text

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.

Slide 107

Slide 107 text

Setting a baseline grid is very frustrating.

Slide 108

Slide 108 text

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; }

Slide 109

Slide 109 text

Baseline Grid Reference body { background-image: linear-gradient(transparent 97%, red 100%); background-size: 100% 28px; /* line-height */ }

Slide 110

Slide 110 text

You've been warned.

Slide 111

Slide 111 text

– En dash – ’ Right single quote ’ “ ” Left double quote “ Right double quote ” — ´ Em dash — Single prime ′ HTML Entities goo.gl/tshnCZ & Ampersand & ‘ Left single quote ‘ … Ellipsis … ˝ Double prime ″

Slide 112

Slide 112 text

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.

Slide 113

Slide 113 text

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

Slide 114

Slide 114 text

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;

Slide 115

Slide 115 text

Support for OpenType Features

Slide 116

Slide 116 text

Stupidly Hard New Stuff: CSS Locks goo.gl/6KYS4t

Slide 117

Slide 117 text

5: Resources

Slide 118

Slide 118 text

Thinking With Type http://thinkingwithtype.com

Slide 119

Slide 119 text

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

Slide 120

Slide 120 text

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

Slide 121

Slide 121 text

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

Slide 122

Slide 122 text

Typekit Practice http://practice.typekit.com

Slide 123

Slide 123 text

Exercise

Slide 124

Slide 124 text

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.

Slide 125

Slide 125 text

You can fork this pen on CodePen: goo.gl/mD19w5 Or you can download these files to work with directly on your laptop: goo.gl/W60X0A