Slide 1

Slide 1 text

typesetting the web KYLE FOX // kylefox.ca // @kylefox WORDCAMP EDMONTON // 2012

Slide 2

Slide 2 text

What this talk is about ‣ Why care about type? ‣ Choosing typefaces ‣ Setting text to look snazzy

Slide 3

Slide 3 text

What this talk is not about ‣ Jessica Hische and/or lettering ‣ Typeface classification ‣ Webfonts or @font-face

Slide 4

Slide 4 text

This is your last chance to leave the room without gravely hurting my feelings.

Slide 5

Slide 5 text

Kyle Fox Designer guy @ Granify Co-organizer of Crafting Type Lifelong type geek

Slide 6

Slide 6 text

Why care about type?

Slide 7

Slide 7 text

“the differences between good and poor typography appear to have little effect on common performance measures such as reading speed and comprehension.”

Slide 8

Slide 8 text

“the differences between good and poor typography appear to have little effect on common performance measures such as reading speed and comprehension.” Source: The Aesthetics of Reading Dr. Kevin Larson & Dr. Rosalind W. Picard

Slide 9

Slide 9 text

“high quality typography appears to induce a positive mood.” “Creative cognitive tasks have shown performance improvements when participants were induced into a positive mood.”

Slide 10

Slide 10 text

- STUDIES SHOW - Good typography makes people frown less.

Slide 11

Slide 11 text

- STUDIES SHOW - Good typography makes people happier & smarter.

Slide 12

Slide 12 text

“One cannot not communicate.” Paul Watzlawick

Slide 13

Slide 13 text

Good typography H invitation to read

Slide 14

Slide 14 text

Good typography H evoke feeling

Slide 15

Slide 15 text

Good typography H body language

Slide 16

Slide 16 text

Good typography H soundtrack

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

CH O OSIN G typefaces

Slide 20

Slide 20 text

- QUALITY INGREDIENTS- Good typography requires good typefaces. A bad font cannot be made to look good! Sorry :(

Slide 21

Slide 21 text

3 considerations ‣ Voice (Style) ‣ Legibility (Distinguishable) ‣ Technical Quality (Not from dafont)

Slide 22

Slide 22 text

Like people, typefaces have voices. Fonts are people too. Huh?

Slide 23

Slide 23 text

Voices convey feeling. That feeling should reinforce your message.

Slide 24

Slide 24 text

Two guys known for their voices Imagine them switched?

Slide 25

Slide 25 text

Basic

Slide 26

Slide 26 text

Basic

Slide 27

Slide 27 text

Basic

Slide 28

Slide 28 text

Macho

Slide 29

Slide 29 text

Macho

Slide 30

Slide 30 text

Macho

Slide 31

Slide 31 text

Lovely

Slide 32

Slide 32 text

Lovely

Slide 33

Slide 33 text

Lovely

Slide 34

Slide 34 text

Sans vs Serif

Slide 35

Slide 35 text

WordCamp WordCamp SANS-SERIF SERIF

Slide 36

Slide 36 text

Sans vs Serif

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

Everyone is wrong.

Slide 39

Slide 39 text

serif vs. sans-serif has resulted in a body of research consisting of weak claims and counter-claims, and study after study with ndings of no difference. “

Slide 40

Slide 40 text

Legibility refers to how easily individual letters or characters can be distinguished from each other.

Slide 41

Slide 41 text

Legibility is affected by the typeface and the manner in which it’s set.

Slide 42

Slide 42 text

baseline median cap height ascender height Sphinx descender height x-height

Slide 43

Slide 43 text

Small x-height Source: Ralf Herrmann, www.opentype.info, (used with permission) Large x-height (more legible)

Slide 44

Slide 44 text

Closed counters oce oce Open counters (easier to distinguish)

Slide 45

Slide 45 text

Unambiguous letterforms Il1O0 Il1O0 Il1O0 Il1O0 Il1O0 Il1O0

Slide 46

Slide 46 text

Technical Quality

Slide 47

Slide 47 text

Complete glyph set?

Slide 48

Slide 48 text

Proper Tracking? Bright vixens jump dozy fowl quack. Bright vixens jump dozy fowl quack. Bright vixens jump dozy fowl quack.

Slide 49

Slide 49 text

Proper Kerning?

Slide 50

Slide 50 text

Proper Kerning?

Slide 51

Slide 51 text

Proper Kerning?

Slide 52

Slide 52 text

Proper Hinting? From http://www.smashingmagazine.com/2012/04/24/a-closer-look-at-font-rendering/

Slide 53

Slide 53 text

Look for Variations within a typeface

Slide 54

Slide 54 text

Does it have: ‣ Condensed + WIDE ‣ Numerous different weights? ‣ True italics? ‣ pen yp feature

Slide 55

Slide 55 text

Look how awesome italics can be! @

Slide 56

Slide 56 text

Look how awful faux bold & italics are! (it looks really bad)

Slide 57

Slide 57 text

It’s unsettling when things lean at unnatural angles.

Slide 58

Slide 58 text

Final words about choosing fonts: ‣ Test your fonts all over. Mobile, retina, etc. ‣ Pay for (don’t pirate) good fonts. ‣ Don’t use display (decorative) fonts for text. ‣ Don’t reuse your logo’s typeface. ‣ Experiment with pairing fonts. Sticking to one serif and one sans-serif usually yields good results.

Slide 59

Slide 59 text

typesetting

Slide 60

Slide 60 text

Typesetting* refers to how pieces of text are styled & arranged to work together in a composition. * typesetting & typography are roughly equivalent

Slide 61

Slide 61 text

Typography is making language visible.

Slide 62

Slide 62 text

A quick discussion about CSS units ‣ Don’t use absolute physical units (pt, in, cm, etc.) ‣ Pixels (px) are ... okay. Pixels make it difficult to define proportional relationships. ‣ Prefers %, em, rem

Slide 63

Slide 63 text

em units Relative to parent’s computed font-size

Slide 64

Slide 64 text

rem units Relative to font-size Not supported in < IE8

Slide 65

Slide 65 text

font-size px, em, rem

Slide 66

Slide 66 text

16px on screen ~= 12pt in print Source: http://wm4.wilsonminer.com/posts/2008/oct/20/relative-readability/

Slide 67

Slide 67 text

No content

Slide 68

Slide 68 text

Make the typeface big. Then make the typeface bigger. ‣ 16px should be the standard for long text. ‣ Consider making it even bigger. ‣ Mobile can be smaller (~12px) as it’s held closer to the eye. ‣ Use a typographic scale to inform your font size choices.

Slide 69

Slide 69 text

an example typographic scale Source: http://www.markboulton.co.uk/journal/five-simple-steps-to-better-typography-part-4

Slide 70

Slide 70 text

line-height unitless, %, em

Slide 71

Slide 71 text

For too long typographic style and its accompanying attention to detail have been overlooked by website designers, particularly in body copy. In years gone by this could have been put down to the technology, but now the web has caught up. The advent of much improved browsers, text rendering and high resolution screens, combine to negate technology as an excuse. line-height: 1; too tight For too long typographic style and its accompanying attention to detail have been overlooked by website designers, particularly in body copy. In years gone by this could have been put down to the technology, but now the web has caught up. The advent of much improved browsers, text rendering and high resolution screens, combine to negate technology as an excuse. line-height: 1.5; just right For too long typographic style and its accompanying attention to detail have been overlooked by website designers, particularly in body copy. In years gone by this could have been put down to the technology, but now the web has caught up. The advent of much improved browsers, text rendering and high resolution screens, combine to negate technology as an excuse. line-height: 2; too much

Slide 72

Slide 72 text

1.6 is a nice, easy number

Slide 73

Slide 73 text

For too long typographic style and its accompanying attention to detail have been overlooked by website designers, particularly in body copy. In years gone by this could have been put down to the technology, but now the web has caught up. The advent of much improved browsers, text rendering and high resolution screens, combine to negate technology as an excuse. Robert Bringhurst’s book The Elements of Typographic Style is on many a designer’s bookshelf and is considered to be a classic in the field. Indeed the renowned typographer Hermann Zapf proclaims the book to be “a must for everybody in the graphic arts, and especially for our new friends entering the field.” In order to allay some of the myths surrounding typography on the web, I have structured this website to step through Bringhurst’s working principles, explaining how to accomplish each using techniques available in html and css. The future is considered with coverage of css3, and practicality is ever present with workarounds, alternatives and compromises for less able browsers. Pro tip: use same proportion for bottom margin

Slide 74

Slide 74 text

Add and delete vertical space in measured intervals line-height: 1.5; too loose Headings: keep them tighter Add and delete vertical space in measured intervals line-height: 1.1; much better

Slide 75

Slide 75 text

line length max-width: ??em;

Slide 76

Slide 76 text

52-78 characters per line is a safe bet.

Slide 77

Slide 77 text

For too long typographic style and its accompanying attention to detail have been overlooked by website designers, particularly in body copy. In years gone by this could have been put down to the technology, but now the web has caught up. The advent of much improved browsers, text rendering and high resolution screens, combine to negate technology as an excuse. ~130 characters way too wide For too long typographic style and its accompanying attention to detail have been overlooked by website designers, particularly in body copy. In years gone by this could have been put down to the technology, but now the web has caught up. The advent of much improved browsers, text rendering and high resolution screens, combine to negate technology as an excuse. ~40 characters too narrow For too long typographic style and its accompanying attention to detail have been overlooked by website designers, particularly in body copy. In years gone by this could have been put down to the technology, but now the web has caught up. The advent of much improved browsers, text rendering and high resolution screens, combine to negate technology as an excuse. ~75 characters looks good!

Slide 78

Slide 78 text

Sadly, can’t just set max-width:75em; ems in CSS don’t have anything to do with the font’s character width. Instead, ems refer to the current font size (height). We’ve been lied to. Solution: you’ll need to eyeball it

Slide 79

Slide 79 text

For too long typographic style and its accompanying attention to detail have been overlooked by website designers, particularly in body copy. In years gone by this could have been put down to the technology, but now the web has caught up. The advent of much improved browsers, text rendering and high resolution screens, combine to negate technology as an excuse. For too long typographic style and its accompanying attention to detail have been overlooked by website designers, particularly in body copy. In years gone by this could have been put down to the technology, but now the web has caught up. The advent of much improved browsers, text rendering and high resolution screens, combine to negate technology as an excuse. Relationship between line height & length Line height increases proportionally to line length. Narrow line, less line height. Wider line, more line height.

Slide 80

Slide 80 text

... in addition to creating texture and making the reader feel good ...

Slide 81

Slide 81 text

typography establishes a visual hierarchy

Slide 82

Slide 82 text

If everything is equal, nothing stands out.

Slide 83

Slide 83 text

Use the trusty CRAP approach to create hierarchy. ‣ Contrast ‣ Repetition ‣ Alignment ‣ Proximity

Slide 84

Slide 84 text

Use the trusty CRAP approach to create hierarchy. ‣ Contrast (size, weight, italic, condensed/wide, small-caps, tone) ‣ Repetition ‣ Alignment ‣ Proximity

Slide 85

Slide 85 text

Use the trusty CRAP approach to create hierarchy. ‣ Contrast (size, weight, italic, condensed/wide, small-caps, tone) ‣ Repetition (stick to a handful of typographic arrangements, use in same contexts) ‣ Alignment ‣ Proximity

Slide 86

Slide 86 text

Use the trusty CRAP approach to create hierarchy. ‣ Contrast (size, weight, italic, condensed/wide, small-caps, tone) ‣ Repetition (stick to a handful of typographic arrangements, use in same contexts) ‣ Alignment (blocks of text should align. more of a layout thing) ‣ Proximity (use vertical margins to group related content and space dissimilar content)

Slide 87

Slide 87 text

Type study: Typographic hierarchy by Frank Chimero. http://blog.typekit.com/2011/03/17/type-study-typographic-hierarchy/

Slide 88

Slide 88 text

No typographic devices. One font, one weight.

Slide 89

Slide 89 text

Introducing margin groups related content together. (proximity)

Slide 90

Slide 90 text

Lecture title now appears in bold. (contrast) Note that this change was drastic enough that the order of the text can be changed without sacrificing clarity.

Slide 91

Slide 91 text

A larger font size it used to add even more contrast to the lecture title. More vertical space further emphasizes grouped content.

Slide 92

Slide 92 text

Drastic weights & sizes changes (along with a break in alignment) reinforce the talk title as the first piece of content a reader should be drawn to.

Slide 93

Slide 93 text

Quick recap...

Slide 94

Slide 94 text

Once basic legibility & readability are achieved, the real power of typography is to evoke an emotional response.

Slide 95

Slide 95 text

Choose the best fonts that have an appropriate voice, ensure legibility & are of high technical quality.

Slide 96

Slide 96 text

Use typesetting to establish texture, contrast & visual hierarchy.

Slide 97

Slide 97 text

Go forth and typogrify!

Slide 98

Slide 98 text

thanks! questions? slides will be posted to kylefox.ca/typesetting-the-web/ Twitter: @kylefox Email: [email protected] Web: kylefox.ca

Slide 99

Slide 99 text

Photo Credits http://en.wikipedia.org/wiki/File:Metal_movable_type.jpg http://www.flickr.com/photos/davepc/7029922257/in/photostream/ http://www.flickr.com/photos/cybertoad/510187391/ http://www.flickr.com/photos/andrein/897274472/