3. It only took a decade
• 1997: CSS2 introduces @font-face
• IE4 supports @font-face
• 2008: Safari 3.1 supports @font-face
• 2009: Firefox 3.5 supports @font-face
• 2010: Chrome 4 supports @font-face
• iOS 4 supports TrueType
• Firefox 3.6, Chrome 6, IE9 support WOFF
• W3C publishes working draft for WOFF
4. Before After
• sIFR • Web fonts
• Flash-based • CSS + Web font file
• Liked by foundries • Hosted option
• Hated by designers • WOFF = Security
• Cufón • It’s just text
• Javascript/JSON
• Lightweight
• Not trusted by foundries
5. Then
• Arial • Times
• Georgia • Palatino
• Trebuchet MS • Helvetica
• Verdana • Courier New
• Impact • Comic Sans
10. Foundries & Designers
Fonts Museo Gotham Avenir
Formats TTF WOFF EOT SVG
@font-face
Font hosting
Self-hosted
services
11. Commerical fonts
‣ Foundries
‣ Hoefler Frere-Jones, FontFont, House Industries,
EmType, exljbris, etc.
‣ Font stores
‣ FontShop.com
‣ MyFonts.com
12. Web font licensing
It’s complicated. Everybody has their own rules.
webfonts.info/wiki/index.php?title=Web_fonts_licensing_overview
13. Free and open source
• Font Squirrel
• fontsquirrel.com
• Google Web Fonts
• code.google.com/webfonts
• League of Movable Type
• theleagueofmovabletype.com
• Lost Type Co-op
• losttype.com
14. SIL Open font license
“
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.
http://scripts.sil.org/OFL
theleagueofmoveabletype.com/manifesto
15. Web font formats
• Embedded OpenType (EOT) • Web Open Font Format
(WOFF)
• TrueType + DRM
• W3C standard (soon)
• Created by Microsoft
• 40% smaller than TTF
• TrueType (TTF)
• Contains metadata
• Standard desktop
format
• SVG
• Used for iOS 3
16. Why do we need all these
crazy font formats?
Credit: shoze.blogspot.com
26. SVG: iOS 3
@font-face {
font-family: 'Gotham';
src: url('gotham.eot') format('eot'),
src: url('gotham.eot?#iefix') format('embedded-opentype'),
url('gotham.woff') format('woff'),
url('gotham.ttf') format('truetype'),
url('gotham.svg#gotham') format('svg');
}
If the # value was not provided for you, open the SVG file in a text editor and look for:
font id="mySVGFontName"
29. Real fonts have big families
Gotham Light
Gotham Light Italic
Gotham Book
Gotham Book Italic
Gotham Medium
Gotham Medium Italic
Gotham Bold
Gotham Bold Italic
Gotham Black
Gotham Black Italic
30. Variant font-weight font-style
Gotham Light 100 normal
Gotham Light Italic 100 italic
Gotham Book 200 normal
Gotham Book Italic 200 italic
Gotham Medium 300 normal
Gotham Medium Italic 300 italic
Gotham Bold 400 normal
Gotham Bold Italic 400 italic
Gotham Black 500 normal
Gotham Black Italic 500 italic
31. You can apply the same font-family
name to each variant, as long as you
set the font-weight and font-style for
each.
32. Calling each font by name. Eh.
@font-face {
font-family: ‘Gotham Light’;
src: url('gotham-light.ttf') format('truetype');
font-weight: 100;
}
h2 {
font-family: ‘Gotham Light’;
}
36. Web font hosting
• Pros • Cons
• Large selection of • Not free: Pay by
high-quality fonts pageviews or per
font
• Very little coding
• No desktop version
• No worrying about of the font
licensing
• Dependent on third-
• No expensive font party service
purchases
37. Web font hosting services
• Paid • Free
• Typekit.com • google.com/
webfonts
• webfonts.fonts.com
• Fontdeck.com
• Kernest.com
40. @font-your-face module
• Supports multiple font-hosting services
• No Javascript to add to your templates
• Browse font collection inside Drupal
• Assign CSS selectors through the UI
drupal.org/projects/font-your-face
46. Thanks!
All content in this presentation, except where noted otherwise, is Creative Commons Attribution-
ShareAlike 3.0 licensed and copyright 2009 Four Kitchen Studios, LLC.