new fonts for the web

52
new fonts for the web october 2009, marctobiaskunisch.com

description

my presentation about @font-face for barcamp london 7

Transcript of new fonts for the web

Page 1: new fonts for the web

new fonts for the web

october 2009, marctobiaskunisch.com

Page 2: new fonts for the web

hi!i‘m tobs and i‘m a frontenddeveloper for eConversions

october 2009, marctobiaskunisch.com

Page 3: new fonts for the web

i had my last cigarette on sunday

october 2009, marctobiaskunisch.com

Page 4: new fonts for the web

and i‘d like to talk a bit about @font-face

october 2009, marctobiaskunisch.com

Page 5: new fonts for the web

The @font-face rule allows for linking to fonts that are automatically activated when needed. This permits authors to work around the limitation of ‚web-safe‘ fonts, allowing for consistent rendering independent of the fonts available in a given user's environment.

http://www.w3.org/TR/css3-fonts/

Page 6: new fonts for the web

so what‘s possible?

Page 7: new fonts for the web

http://nicewebtype.com/fonts/museo-and-sans/

Page 8: new fonts for the web

http://nicewebtype.com/fonts/bello-and-proxima-nova/

Page 9: new fonts for the web

the css

Page 10: new fonts for the web

@font-face { font-family: 'Graublau Web'; src: url('GraublauWeb.otf') format('opentype');}

h1 { font-face: 'Graublau Web', arial, sans-serif;}

Page 11: new fonts for the web

browser support

Page 12: new fonts for the web

TrueType(.ttf)

OpenType PS (.otf)

Embedded OpenType (.eot)

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

Web Open Font Format (WOFF)

Page 13: new fonts for the web

better css

Page 14: new fonts for the web

@font-face { font-family: 'Graublau Web'; src: url('GraublauWeb.eot); src: local('Graublau Web Regular'), local('Graublau Web'), url('GraublauWeb.woff') format('woff'), url('GraublauWeb.otf') format('opentype');}

h1 { font-face: 'Graublau Web', arial, sans-serif;}

http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/

Page 15: new fonts for the web

converting to .eot

Page 16: new fonts for the web

http://www.microsoft.com/typography/WEFT.mspx

Weft(not really)

Page 17: new fonts for the web

http://fontforge.sourceforge.net/

fontforge(otf to ttf)

Page 18: new fonts for the web

http://www.kirsle.net/wizards/ttf2eot.cgi

TTF to EOT Font Converter

Page 19: new fonts for the web

or much easier:

Page 20: new fonts for the web

http://www.fontsquirrel.com/fontface/generator

Font Squirrel@font-face Kit Generator

Page 21: new fonts for the web

the real world

Page 23: new fonts for the web

it degrades gracefully:

Page 24: new fonts for the web

unfortunately,not all fonts are

made for the web

Page 25: new fonts for the web

not all fonts come with hinting for the screen

Font hinting is the use of mathematical instructions to adjust the display of an outline font so that it lines up with a rasterized grid. At small screen sizes, with or without antialiasing, hinting is critical for producing a clear, legible text for human readers. It is also known as instructing. „

http://en.wikipedia.org/wiki/Hinting

Page 26: new fonts for the web

http://en.wikipedia.org/wiki/Hinting

A font test with hinting (lower rows) and without

hinting (upper rows) at 100% (above) and 400% (below).

Page 27: new fonts for the web

...plus file sizes, x-height, legibility...

Page 28: new fonts for the web

what

boing boingdid wrong

Page 29: new fonts for the web

http://img401.imageshack.us/img401/1355/newboingboing.jpg

Page 30: new fonts for the web

other issues with @font-face

Page 31: new fonts for the web

fout(flash of unstyled text)

Page 32: new fonts for the web

• re-rendered text - Firefox renders text using a default font while the @font-face file is being downloaded. Once the font file is downloaded, Firefox re-renders the text using the correct font.

• invisible text - Most other browsers don’t draw the text at all until the font is downloaded.

http://www.stevesouders.com/blog/2009/10/13/font-face-and-performance/

Page 33: new fonts for the web

http://remysharp.com/2009/06/23/safaris-problem-with-font-face/

Page 34: new fonts for the web

• IE doesn’t render anything in the page until the font file is done downloading if there is a SCRIPT tag above the @font-face declaration.

http://www.stevesouders.com/blog/2009/10/13/font-face-and-performance/

Page 35: new fonts for the web

licensing

Page 36: new fonts for the web

• WOFF to the rescue?

• font foundries slowly realizing there are opportunities in web fonts

• always read the EULA

Page 37: new fonts for the web

resources

Page 38: new fonts for the web

http://openfontlibrary.fontly.org/

Page 40: new fonts for the web

http://www.theleagueofmoveabletype.com/

Page 42: new fonts for the web

services

Page 43: new fonts for the web

typekit.com

Page 46: new fonts for the web

but keep in mind:

typography takes some skill(remember those animated gifs?)

Page 47: new fonts for the web

just imagine people starting to embed comic sans into their websites

Page 48: new fonts for the web

so catch up on your reading

http://webtypography.net/intro/

Page 49: new fonts for the web

I think

this will change the web...

Page 50: new fonts for the web

...in a good waydon‘t you?

Page 51: new fonts for the web

thanks!questions?

Page 52: new fonts for the web

slideshare.com/tobestobs

marc tobias kunischmarctobiaskunisch.com

@tobestobs