Typography & the Web

Week 7

CDGD304 - Fall 2011
http://bit.ly/massart-web304-type

Order of Business

  1. Review Homework

  2. History of Type on the Web

  3. CSS3 & @font-face

  4. Licensing vs Free

  5. Choosing Fonts

  6. Combining Fonts

  7. Typography

  8. Tips & Tricks

  9. Trends

Homework Review

History of Type on the Web

In the past you were limited too...

Today we have

CSS3 & @font-face

	@font-face {
	  src: url(Beautiful-ES.ttf);
	  font-family: "Beautiful";
	}

Pros

  • We have more fonts to use!.

  • Dynamic, selectable, printable, and easily edited text

  • Easy to implement

  • Smaller and faster loading pages than images

  • Cons

  • Easy to overuse. Lots of funs fonts don’t make good designs, good designers make good designs

  • Licensing - if it’s not open sourced and you don’t have a license - don’t use it

  • FOUT (flash of unstyled text)

  • Rendering differences 
(pixel perfection should be a thing of the past)

  • Getting your fonts into your site


    Browser Support

    @font-face

  • Adds “font-family” fonts you can use with CSS

  • Currently you need to provide 4 different versions of the same font to cover all browsers

  • Don’t worry about the specifics
use a generator like fontsquirrel.com
or use a hosting service

  • Raw Code

    @font-face {
    	font-family: "Your typeface";
    	src: url("type/filename.eot");
    	src: local("☺"),
    		url("type/filename.woff") format("woff"),
    		url("type/filename.otf") format("opentype"),
    		url("type/filename.svg#filename") format("svg");
    }
    @font-face {
    	font-family: "Your italic typeface";
    	src: url("type/filename-ital.eot");
    	src: local("☺"),
    		url("type/filename-ital.woff") format("woff"),
    		url("type/filename-ital.otf") format("opentype"),
    		url("type/filename-ital.svg#filename-ital") format("svg");
    }

    Don’t write this - cut and paste from your generator

    Link Code

    <link href='http://fonts.googleapis.com/css?family=FontName&v2' rel='stylesheet' type='text/css'>

    Example from Google Fonts

    Your CSS

    h2 { font-family: "Your typeface", Georgia, serif; }

    Style as Usual

    Exercise 1: Load Some Google Fonts

    Load a different font for your H1, and your P from Google Fonts

    Where do you find fonts?



    Hosted Platforms



    Buying a License



    Free Fonts

    Free Problems

  • Quality not guaranteed

  • Unknown rendering (hinting)

  • Poorly drawn

  • Poorly kerned


  • Complete Sets


    Font Hinting

    via Wikipedia


    Kerning

    Licensing

  • Make sure you own the license

  • Read the EULA

  • Desktop licenses are not the same as web

  • Avoid liability issues

  • How to choose fonts



    Know your styles


    Old Style (serif)

    Slanted serifs, a moderate transition between the thick and thin strokes of a letterform, and a diagonal stress (the angle of a line drawn through the thinnest parts of curved letters).


    Modern (serif)

    Thin, horizontal serifs, a radical difference between the thick and thin strokes of a letterform, and a vertical stress.


    Slab Serif

    Thick, horizontal serifs, little to no difference between the thick and thin strokes, and a vertical stress.


    Sans Serif

    No serifs, and most often monoweight (the strokes are pretty much one thickness)


    Script

    Anything with a flowing, handwritten style.


    Decorative

    Whimsical and fun. Grunge faces are a subcategory in that they are definitely decorative, but lawless and edgy, breaking the rules, trashy and trendy.



    Know your audience and platform


    Large x-height & counters for body text

    the larger the bowls on letters like “b” and “h” the easier your text will be to read on a screen, especially at small sizes.


    Check your 1, I, and l

    the number one, capital “i”, and lowercase “L” should be distinct.


    Readability

    At small sizes fonts with larger variation in weights will be harder to read.


    Headline vs Text


    Appropriate

    Always honor your content and audience first.
Choose fonts that are relevant to your subject before choosing what’s new and trendy.

    Combining Fonts

    Combining Fonts

  • KISS (Keep It Simple Stupid)

  • Don't over complicate: limit yourself to 2 Styles

  • San Serif + Serif always works

  • avoid similar styles/classifications



  • Go for contrast

    The Golden Ratio:
    Heading to Body font size

    Heading font size ÷ Body copy font size = 1.96

    What this really means is that if you double your body size you will almost always have enough contrast in weight from the heading.



    Though the current trend is big headlines...



    Limiting yourself to one font can work beautifully as well.

    Why you Should Care about Typography



    Typography is not picking a "cool" font -Jeff Croft


    Good typography is the easiest way to quickly make your site look good.

    But most importantly, it will make your site easier to read and navigate for users.

    Hierarchy

  • Decide what is most important
and NOT everything can be important.

  • Make more important things are bigger.

  • Make less important smaller.

  • Add emphasis with color, weight and style.




  • You need to decide what’s important

    big headline, med body, small detail, red box for emphasis, red type for emphasis

    emphasis

    Giving emphasis to a word without interrupting the reader is important. Italic is widely considered to be the ideal form of emphasis. Some other common forms of emphasis are: bold, caps, small caps, type size, color, underline or a different typeface. No matter which you choose, try to limit yourself to using only one. Combinations such as caps-bold-italic are disruptive and look clumsy.

    Space

  • Keep line length readable, not too long or short.

  • Adjust the line-height to give more

  • White space

  • How Many Characters Per Line?

    According to Robert Bringhurst, who wrote my typography bible, 45 to 75.
    Recent web studies show that 66 might be the “web ideal”

    Line Height

    Letter Spacing

    embrace white space

    Not every pixel needs to be covered in text or graphics.

    White space doesn’t have to be white, it can be red, green, black, or patterned. It’s simply space that is left vacant.

    The vacant space makes it easier for the reader to navigate through the content of your site.

    Be a type rockstar

    Read

    - hyphen

    used to separate the words in a compound adjective, verb, or adverb.


    The friendly-looking man in the front is waiting for a much-needed break.

    – the en dash

    used to express a range of values or a distance


    The Red Sox beat the Yankees 4–0.

    — the em dash

    used to indicate a break in though


    The pizza—with warm cheese and spicy pepperoni—was delicious.

    Be Smart not Dumb

    'dumb double quotes'
    “smart double quotes”

    &#8220 = opening double quotes &#8221 = closing double quotes



    'dumb single quotes'
    ‘smart single quotes’

    &#8216 = opening single quote &#8217 = closing single quote

    Thirty-Four Typographic Sins by Jim Godfrey

    Exercise 2: Lettering JS

    Let's load in some google fonts and style the gettysburg address with lettering js

    Tips & Tricks

    useful tools

    Trends



    Font Effects....

    Exercise 3: Font Effects

    Tutorial

    Resources

  • typedia.com

  • typophile.com

  • ilovetype.com

  • alistapart.com

  • lettering.js

  • ffffallback.com

  • ifontyou.com

  • Homework

    Reading

    Coding