The type revolutionary's cookbook

41
The Type Revolutionary’s Cookbook Kevin O’Leary Aaron Stanush

description

A talk about how far fonts have come on the web and why this is the beginning of a new age for using beautiful fonts everywhere. Originally presented by Aaron Stanush (Four Kitchens) and Kevin O'Leary (Acquia) at DrupalCon Chicago 2010. http://chicago2011.drupal.org/sessions/type-revolutionary-s-cookbook

Transcript of The type revolutionary's cookbook

Page 1: The type revolutionary's cookbook

The Type Revolutionary’s Cookbook

Kevin O’Leary

Aaron Stanush

Page 2: The type revolutionary's cookbook

[email protected]@aaronstanush

kevin.o'[email protected]

Aaron Stanush Kevin O’LearyPartner and Designer UX designer

Page 3: The type revolutionary's cookbook

Why do we need more fonts?Because we do

Page 4: The type revolutionary's cookbook

‣ Type is beautiful

‣ Variety adds richness

‣ Type adds meaning

Because...

Page 5: The type revolutionary's cookbook
Page 6: The type revolutionary's cookbook

A little bit of historyThe golden age of type

Page 7: The type revolutionary's cookbook

Timeline‣ 1975: Steve Jobs takes a calligraphy class

‣ 1984: The First Scalable Type Fonts

‣ 1991: The Unicode Standard

‣ 1995: Thousands of scalable fonts in use

‣ 1998: @font-face introduced

‣ 2007: Typekit launched

‣ 2010: All major browsers support @font-face

Page 8: The type revolutionary's cookbook

Before‣ sIFR

‣ Flash

‣ Liked by foundries

‣ Cufón

‣ Javascript/JSON

‣ Lightweight, not widely trusted for licensing

‣ @font-face + WOFF

‣ Just CSS

‣ Still serves files but in a more secure way

After

Page 9: The type revolutionary's cookbook

Then‣ Arial

‣ Georgia

‣ Trebuchet MS

‣ Verdana

‣ Impact

‣ Times

‣ Palatino

‣ Geneva‣ Courier New

‣ Comic Sans

Page 10: The type revolutionary's cookbook

lostworldsfairs.com/moon

Page 11: The type revolutionary's cookbook

FOUNDRIES

Museo

DESIGNERS

Gotham Avenir

FORMATS WOFFTTF EOT

&

SVG

@font-face

FONTHOSTINGSERVICES

DIY

Page 12: The type revolutionary's cookbook

Where do fonts come from?Boutiques and mega-stores

Page 13: The type revolutionary's cookbook

Commerical fonts‣ Foundries and designers

‣ Hoefler Frere-Jones, FontFont, House Industries, EmType, Emigre, P22

‣ Font stores

‣ FontShop.com

‣ MyFonts.com

‣ Fontspring.com

Page 14: The type revolutionary's cookbook

Web font licensingIt’s complicated. Every foundry or designer has their own rules.

Page 15: The type revolutionary's cookbook

webfonts.info/wiki/index.php?title=Web_fonts_licensing_overview

Page 16: The type revolutionary's cookbook

Commercial-free or open source‣ Font Squirrel

‣ fontsquirrel.com

‣ Google web fonts

‣ code.google.com/webfonts

‣ League of Movable Type

‣ theleagueofmovabletype.com

Page 17: The type revolutionary's cookbook

SIL Open font license‣ scripts.sil.org/OFL

theleagueofmoveabletype.com/manifesto

It means that you're allowed to use these fonts personally or commercially, as long as you credit the original creator, and if you made tweaks and changes to the typefaces, any new typefaces resulting from it should be licensed under the same terms. That way all our fonts and any new fonts resulting from them will always be open.

Page 18: The type revolutionary's cookbook

Web font formatsMany formats for many browsers

Page 19: The type revolutionary's cookbook

Web font formats‣ Truetype (TTF)

‣ Standard desktop format

‣ Embedded OpenType(EOT)

‣ TrueType + DRM

‣ Created by Microsoft

‣ Web open font format (WOFF)

‣ W3C standard, soon

‣ Smaller, contains metadata

‣ Scalable Vector Graphics (SVG)

‣ Not an actual font format

Page 20: The type revolutionary's cookbook

Browser support

webfonts.info/wiki/index.php?title=@font-face_browser_support

Format Firefox 3.6+ Chrome 6+ IE 6-8 IE9 Safari 3.1+ iOS 4.2 Android 2.2

EOT • •

TTF • • • • •

SVG • •

WOFF • • •

Page 21: The type revolutionary's cookbook

Do it yourselfFont kits and bulletproof @font-face syntax

Page 22: The type revolutionary's cookbook

@font-face kits‣ Contains:

‣ EOT, WOFF, TTF, SVG

‣ Pre-built kits

‣ Paid: fontspring.com and other shops

‣ Free: fontsquirrel.com/fontface

‣ Build your own/host your own

‣ fontsquirrel.com/fontface/generator

Page 23: The type revolutionary's cookbook

Basic @font-face@font-face { font-family: Gotham; src: url('gotham.ttf'); }

h1 { font-family: Gotham; }

Page 24: The type revolutionary's cookbook

Bulletproof @font-face

fontspring.com/blog/the-new-bulletproof-font-face-syntax

@font-face { font-family: 'Gotham'; src: url('gotham.eot') format('eot'), src: url('gotham.eot?iefix') format('eot'), url('gotham.woff') format('woff'), url('gotham.ttf') format('truetype'), url('gotham.svg#gotham') format('svg'); }

Page 25: The type revolutionary's cookbook

Define the first EOT

@font-face { font-family: 'Gotham'; src: url('gotham.eot') format('eot'), src: url('gotham.eot?iefix') format('eot'), url('gotham.woff') format('woff'), url('gotham.ttf') format('truetype'), url('gotham.svg#gotham') format('svg'); }

This ensures the EOT is delivered to IE 9 while in IE 7/8 compatibility mode.

Page 26: The type revolutionary's cookbook

@font-face { font-family: 'Gotham'; src: url('gotham.eot') format('eot'), src: url('gotham.eot?iefix') format('eot'), url('gotham.woff') format('woff'), url('gotham.ttf') format('truetype'), url('gotham.svg#gotham') format('svg'); }

The question mark tricks IE 6-8 into ignoring the rest of the formats.

Define the second EOT

Page 27: The type revolutionary's cookbook

@font-face { font-family: 'Gotham'; src: url('gotham.eot') format('eot'), src: url('gotham.eot?iefix') format('eot'), url('gotham.woff') format('woff'), url('gotham.ttf') format('truetype'), url('gotham.svg#gotham') format('svg'); }

Define the WOFF

Page 28: The type revolutionary's cookbook

@font-face { font-family: 'Gotham'; src: url('gotham.eot') format('eot'), src: url('gotham.eot?iefix') format('eot'), url('gotham.woff') format('woff'), url('gotham.ttf') format('truetype'), url('gotham.svg#gotham') format('svg'); }

Define the True-type

Page 29: The type revolutionary's cookbook

If the # value was not provided for you, open the SVG file in a text editor and look for:font id="mySVGFontName"

@font-face { font-family: 'Gotham'; src: url('gotham.eot') format('eot'), src: url('gotham.eot?iefix') format('eot'), url('gotham.woff') format('woff'), url('gotham.ttf') format('truetype'), url('gotham.svg#gotham') format('svg'); }

Define the SVG

Page 30: The type revolutionary's cookbook

Font hosting servicesAn easier way

Page 31: The type revolutionary's cookbook

Font hosting‣ Pros

‣ Large selection of high-quality fonts

‣ Very little coding

‣ No worrying about licensing

‣ No expensive font purchases

‣ Cons

‣ Not free – pay by pageviews or per font

Page 32: The type revolutionary's cookbook

Font hosting services‣ fonts.com

‣ fontslive.com

‣ fontdeck.com

‣ typekit.com

‣ web-type.com

‣ kernest.com and fontue.com

‣ webink.com

Page 33: The type revolutionary's cookbook

Font hosting services

fffo.grahambird.co.uk

Page 34: The type revolutionary's cookbook

Ensuring qualityIt’s a mixed bag

Page 35: The type revolutionary's cookbook

Three steps to quality‣ Know your foundry

‣ Use appropriately

‣ Test, test, test

Page 36: The type revolutionary's cookbook

Getting the hintNot all fonts are created equal

Page 37: The type revolutionary's cookbook

What the future holds

Page 38: The type revolutionary's cookbook

‣ Hinting will go away (eventually)

‣ We will consolidate on one format (WOFF)

‣ All typographic tools available to print designers will become part of CSS

‣ Optically scalable fonts

What we can hope for

Page 39: The type revolutionary's cookbook

Optical scaling

Page 40: The type revolutionary's cookbook

@font-your-face module ‣ drupal.org/project/fontyourface

‣ Support for Typekit, Google Fonts, Fonts.com, Font Squirrel, Kernest, and FontDeck

‣ Enabling a font happens automatically, e.g. no JS to add

‣ Can apply fonts to site elements through the UI

Page 41: The type revolutionary's cookbook

What did you think?

Locate this session on the DCC website:http://chicago2011.drupal.org/sessions

Click the “Take the Survey” link.

Thanks!