SlideShare a Scribd company logo
1 of 102
Download to read offline
TYPE TODAY
a primer on web typography in 2011
          for front-end developers



        martha re ig • cykod.com
                     @artimated
L   r!!??
WHAT I'LL COVER
๏   CSS3 & @font-face

๏   Where to find fonts

๏   How to choose

๏   Combining Fonts

๏   Why you should care about typography

๏   Pre y Things
CSS3 &
@FONT-FACE
PROS
๏   We have more fonts to use!
    (that means we aren’t limited to the verdana, arial,
    georgia basics)

๏   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




Firefox 3.5   Chrome 4   Opera 10   Safari 3.1   IE4
@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
WHERE TO FIND
THESE COOL FONTS?
Hosted Platforms
typekit.com
fontdeck.com
fonts.com
Buying a License
myfonts.com
kernest.com
FontSpring.com
Webtype.com
Free Fonts
Google Web Fonts
FontSquirrel.com
TheLeagueofMoveableType.com
FREE PROBLEMS
๏   Quality not guaranteed

๏   Unknown rendering (hinting)

๏   Poorly drawn

๏   Poorly kerned
Complete Sets

     Reklame
                I’d Love to Go!
Reklame DEMO
         FREE
                I’d Love to Go!
font hinting




A font test with hinting (lower rows) and without hinting (upper rows) at 100% (above)
and 400% (below). Note the increased edge contrast with the hinted text but more
faithful character shape and more natural inter-character spacing in the unhinted text.




                                                          http://en.wikipedia.org/wiki/Font_hinting
Kerning

VARIATION                                    League Gothic




VARIATION                                           BEBAS



 Spaces between ALL letters should be even
MY LAST 2 CENTS
๏   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
 Slanted serifs, a moderate transition between the thick and
thin strokes of a le erform, and a diagonal stress (the angle of
a line drawn through the thinnest parts of curved le ers).




Handgloves                                 Goudy Old Style




Handgloves                                 Palatino
Modern
Thin, horizontal serifs, a radical difference between the thick
and thin strokes of a le erform, and a vertical stress.




Handgloves                              Bodoni




Handgloves                              Didot
Slab Serif
Thick, horizontal serifs, li le to no difference between the
thick and thin strokes, and a vertical stress.




                                             Clarendon
Handgloves
Handgloves                                    Archer
San Serif
No serifs, and most o en monoweight (the strokes are pre y
much one thickness)




Handgloves                                 Helvetica




Handgloves                                 League Gothic
Script
Anything with a flowing, handwri en style.




Handgloves                                  Bello




Handgloves                                  Reklame
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.




Handgloves                                   HandCancelled




Handgloves                                   Stencil
Know your audience
   and platform
Large x-height &
  counters for body text
  the larger the bowls on le ers like “b” and “h” the easier your
  text will be to read on a screen, especially at small sizes.




hobo hobo
Small x-height & counters          Large x-height & counters
         Cochin                             Georgia
Check your 1, I, and l
   the number one, capital “i”, and lowercase “L” should be
   distinct.




1Il 1Il 1Il
Gill Sans               Georgia                Museo
Readability
 At small sizes fonts with larger variation in weights will be
 harder to read.



Handgloves                                  Bodoni 80px

                                            Bodoni 24px
Handgloves




Handgloves                                  Verdana 80px

                                            Verdana 24px
Handgloves
Headline Vs. Text
Five quacking zephyrs                           Five quacking
jolt my wax bed.                                zephyrs
Flummoxed by job, kvetching W. zaps Iraq.
Cozy sphinx waves quart jug of bad milk. A
very bad quack might jinx zippy fowls. Few
                                                jolt my wax bed.
quips galvanized the mock jury box. Quick       Flummoxed by job, kvetching W. zaps Iraq. Cozy sphinx waves
brown dogs jump over the lazy fox. The jay,
                                                quart jug of bad milk. A very bad quack might jinx zippy fowls.
pig, fox, zebra, and my wolves quack! Blowzy
                                                Few quips galvanized the mock jury box. Quick brown dogs jump
red vixens fight for a quick jump. Joaquin
Phoenix was gazed by MTV for luck. A
                                                over the lazy fox. The jay, pig, fox, zebra, and my wolves quack!
wizard’s job is to vex chumps quickly in fog.
                                                Blowzy red vixens fight for a quick jump. Joaquin Phoenix was
Watch "Jeopardy! ", Alex Trebek's fun           gazed by MTV for luck. A wizard’s job is to vex chumps quickly in
TV quiz game. Woven silk pyjamas exchanged      fog. Watch "Jeopardy! ", Alex Trebek's fun TV quiz game. Woven
for blue quartz.                                silk pyjamas exchanged for blue quartz.



League Gothic as headline                       Droid Serif as headline
Droid Serif as body                             League Gothic as body
Appropriate
Always honor your content and audience first.
Choose fonts that are relevant to your subject before choosing
what’s new and trendy.


S ,N .
Y      ’ L                               r
 vr w r.
replaced all headings in nytimes.com with lobster using fontfriend
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...
designingmonsters.com
solidgiant.com
fittextjs.com
underconsideration.com/brandnewconference
Limiting yourself to one font
can work beautifully as well.
seedconference.com
lovehelvetica.com
legistyles.com/
Julian Hansen




                So You Need A Typeface by Julian Hansen
WHY YOU SHOULD CARE
 ABOUT TYPOGRAPHY
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
yvettesbridalformal.com
creativemornings.com
big headline
           med body
          small detail
red box for emphasis
red type for emphasis




                         creativemornings.com
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 ma er which you choose, try to limit yourself to
using only one. Combinations such as caps-bold-italic are
disruptive and look clumsy.
Good
The quick, brown fox jumps over a lazy dog. DJs flock by when
MTV ax quiz prog. Junk MTV quiz graced by fox whelps. Bawds
jog, flick quartz, vex nymphs. Waltz, bad nymph, for quick jigs
vex! Fox nymphs grab quick-jived waltz. Brick quiz whangs jumpy
veldt fox. Bright vixens jump; dozy fowl quack.




Bad
The quick, brown fox JUMPS OVER A LAZY DOG. DJs flock
by when MTV ax quiz prog. Junk MTV quiz graced by fox whelps.
Bawds jog, flick quartz, vex nymphs. Waltz, bad nymph, for quick
jigs vex! Fox nymphs grab quick-jived waltz. Brick quiz whangs
jumpy veldt fox. Bright vixens jump; dozy fowl quack.
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
NO    The quick, brown fox jumps over a lazy dog. DJs flock by when MTV ax quiz prog. Junk
      MTV quiz graced by fox whelps. Bawds jog, flick quartz, vex nymphs. Waltz, bad nymph, for
      quick jigs vex! Fox nymphs grab quick-jived waltz. Brick quiz whangs jumpy veldt fox.
      Bright vixens jump; dozy fowl quack.




YES   The quick, brown fox jumps over a lazy dog. DJs flock by when MTV ax quiz prog. Junk
      MTV quiz graced by fox whelps. Bawds jog, flick quartz, vex nymphs. Waltz, bad nymph, for
      quick jigs vex! Fox nymphs grab quick-jived waltz. Brick quiz whangs jumpy veldt fox.
      Bright vixens jump; dozy fowl quack.



NO
      The quick, brown fox jumps over a lazy dog. DJs flock by when MTV ax quiz prog. Junk


      MTV quiz graced by fox whelps. Bawds jog, flick quartz, vex nymphs. Waltz, bad nymph, for


      quick jigs vex! Fox nymphs grab quick-jived waltz. Brick quiz whangs jumpy veldt fox.


      Bright vixens jump; dozy fowl quack.
Letter Spacing
NO    Cozy sphinx waves quart jug of bad milk.




YES   Cozy sphinx waves quart jug of bad milk.




NO    Cozy sphinx waves quar t jug of bad milk.




OK    C O Z Y S P H I N X WAV E S
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 pa erned. It’s simply space that is le vacant.

 The vacant space makes it easier for the reader to navigate
through the content of your site.
be a type rockstar
Read




             Stop Stealing Sheep   The Elements of
       & find out how type works    Typographic Style
by Erik Spiekermann & E.M. Ginge   by Robert Bringhurst
- 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
(&#8211;)
used to express a range of values or a distance

The Red Sox beat the Yankees 4–0.
— The em dash
(&#8212;)
used to indicate a break in thought

The pizza—with warm cheese and spicy pepperoni—was
delicious.
Be Smart not Dumb

‶dumb double quotes‶    #8216; = opening single quote

“smart double quotes”   &#8217 = closing single quote




‵dumb single quotes‵    &#8220 = opening double quote

“smart single quotes”   &#8221 = closing double quote
thirty-four




                                                                                                                                                                h p://www.jimgodfreydesign.com/typeSins.pdf
Two spaces between sentences.                                                 Indenting a paragraph too far.
Repent of this sin by using only one space.                                   The standard indent for a paragraph is 1 em, not ½ inch. Most software has
                                                                              default tabs set for ½ inch, so adjust the tabs.
Dumb quotes instead of smart quotes.
Evil: "Thou shalt not misuse type"       Good: “Thou shalt not misuse type”   Failing to hang punctuation into the margin.
                                                                              Punctuation has less visual weight than letters or numbers.
Dumb apostrophe instead of a smart apostrophe.                                Compensate for this in display text by hanging the punctuation into the margin.
Profane: Don't use prime marks Sacred: Don’t use prime marks
By the way, apostrophes always face this way: Pot o’ gold.                    Failing to use or create fractions.
They never face this way: Pot ‘o gold.                                        Wicked: 1/2    Righteous: ½

Failing to tuck periods/commas inside quotes marks.                           Incorrectly abbreviating AM and PM.
Immoral: “I love type so much”, she confessed.                                Unclean: am, AM, A.M.      Relatively Clean: a.m.   Clean: a.m. or AM
Chaste: “I love type so much,” she testi ed.
                                                                              Failing to provide margins for type in a box.
Failing to kern display type.
Unseemly gaps can impede readability and be distracting to the reader.
Adjusting the spacing between letters will assuage your guilt.
                                                                              Faux italic/oblique, bold and small cap type.
                                                                              Impure: Italic Pure: Italic
Using a hyphen instead of an en dash.
                                                                              Sinful: Bold Virtuous: Bold
Use an en dash to indicate a duration of time instead of the word “to”:
                                                                              Unkosher: SMALLCAPS Kosher: Smallcaps
the 8–10 commandments, not 8-10 commandments.

Using two hyphens instead of an em dash.                                      Strokes that encroach upon letterforms.
An em dash signi es a change in thought—or a parenthetical phrase—within      Hellacious        Heavenly                 Thiry-Four Typographic Sins by Jim Godfrey
TIPS & TRICKS
letteringjs.com
lostworldsfairs.com/moon
preparetoactivate.com
useful tools
somadesign.ca/projects/fontfriend/
chengyinliu.com/whatfont.html
Trends
webvisionaryawards.com
snowdenindustries.com
frontend2011.com
nicewebtype.com/fonts
beercamp.com/2010
freestyle-night.ch
philipmeissnerdesign.com
collaborativefund.com
golivebutton.com
I was going to put together
some demos on how to
create these effects....
but Chris
                                          Spooner
                                          of Line25
                                          already
                                          has some
                                          great ones.




http://line25.com/articles/using-css-text-shadow-to-create-cool-text-effects
RESOURCES
๏   typedia.com

๏   typophile.com

๏   ilovetype.com

๏   alistapart.com

๏   le ering.js

๏   ffffallback.com

๏   ifontyou.com
THANKS!


 martha re ig • cykod.com
              @artimated

More Related Content

Similar to Web Typography for Front End Developers

typography 101.pdf
typography 101.pdftypography 101.pdf
typography 101.pdfjb00007
 
Fontface issue 3
Fontface issue 3Fontface issue 3
Fontface issue 3Gemmalea
 
Typography Matters #psuweb
Typography Matters #psuwebTypography Matters #psuweb
Typography Matters #psuwebJoel G Goodman
 
Fsfinalbook single
Fsfinalbook singleFsfinalbook single
Fsfinalbook singleXuan Le
 
Type choice & type use
Type choice & type useType choice & type use
Type choice & type useultrasparky
 
Words, Words, Words: Reading Shakespare with Python
Words, Words, Words: Reading Shakespare with PythonWords, Words, Words: Reading Shakespare with Python
Words, Words, Words: Reading Shakespare with PythonAdam Palay
 
Visual Literacy Basics.Key
Visual Literacy Basics.KeyVisual Literacy Basics.Key
Visual Literacy Basics.KeyStratervation
 
Hyphens and Commonly Confused Words PPT
Hyphens and Commonly Confused Words PPTHyphens and Commonly Confused Words PPT
Hyphens and Commonly Confused Words PPTclairmckinnon
 
Web Typography: An Overview
Web Typography: An OverviewWeb Typography: An Overview
Web Typography: An Overviewbradblackman
 
Webpage Design Basics for Non-Designers
Webpage Design Basics for Non-DesignersWebpage Design Basics for Non-Designers
Webpage Design Basics for Non-DesignersMike Wilcox
 
[DevDay2019] Spacing and Typography, keys to a professional UI design - By Ng...
[DevDay2019] Spacing and Typography, keys to a professional UI design - By Ng...[DevDay2019] Spacing and Typography, keys to a professional UI design - By Ng...
[DevDay2019] Spacing and Typography, keys to a professional UI design - By Ng...DevDay.org
 

Similar to Web Typography for Front End Developers (20)

typography 101.pdf
typography 101.pdftypography 101.pdf
typography 101.pdf
 
Meet your type
Meet your typeMeet your type
Meet your type
 
Font shop book
Font shop bookFont shop book
Font shop book
 
Designing with type
Designing with typeDesigning with type
Designing with type
 
Fontface issue 3
Fontface issue 3Fontface issue 3
Fontface issue 3
 
Typography Matters #psuweb
Typography Matters #psuwebTypography Matters #psuweb
Typography Matters #psuweb
 
Fsfinalbook single
Fsfinalbook singleFsfinalbook single
Fsfinalbook single
 
Type choice & type use
Type choice & type useType choice & type use
Type choice & type use
 
N-Share: Typography
N-Share: TypographyN-Share: Typography
N-Share: Typography
 
Words, Words, Words: Reading Shakespare with Python
Words, Words, Words: Reading Shakespare with PythonWords, Words, Words: Reading Shakespare with Python
Words, Words, Words: Reading Shakespare with Python
 
Type 1 2 3
Type 1 2 3Type 1 2 3
Type 1 2 3
 
Type in 1-2-3
Type in 1-2-3Type in 1-2-3
Type in 1-2-3
 
Visual Literacy Basics.Key
Visual Literacy Basics.KeyVisual Literacy Basics.Key
Visual Literacy Basics.Key
 
Hyphens and Commonly Confused Words PPT
Hyphens and Commonly Confused Words PPTHyphens and Commonly Confused Words PPT
Hyphens and Commonly Confused Words PPT
 
Web Typography
Web TypographyWeb Typography
Web Typography
 
Web Typography 2009
Web Typography 2009Web Typography 2009
Web Typography 2009
 
Web Typography: An Overview
Web Typography: An OverviewWeb Typography: An Overview
Web Typography: An Overview
 
Typography class 2
Typography class 2Typography class 2
Typography class 2
 
Webpage Design Basics for Non-Designers
Webpage Design Basics for Non-DesignersWebpage Design Basics for Non-Designers
Webpage Design Basics for Non-Designers
 
[DevDay2019] Spacing and Typography, keys to a professional UI design - By Ng...
[DevDay2019] Spacing and Typography, keys to a professional UI design - By Ng...[DevDay2019] Spacing and Typography, keys to a professional UI design - By Ng...
[DevDay2019] Spacing and Typography, keys to a professional UI design - By Ng...
 

Recently uploaded

Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 

Recently uploaded (20)

Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 

Web Typography for Front End Developers

  • 1. TYPE TODAY a primer on web typography in 2011 for front-end developers martha re ig • cykod.com @artimated
  • 2. L r!!??
  • 3. WHAT I'LL COVER ๏ CSS3 & @font-face ๏ Where to find fonts ๏ How to choose ๏ Combining Fonts ๏ Why you should care about typography ๏ Pre y Things
  • 5. PROS ๏ We have more fonts to use! (that means we aren’t limited to the verdana, arial, georgia basics) ๏ Dynamic, selectable, printable, and easily edited text ๏ Easy to implement ๏ Smaller and faster loading pages than images
  • 6. 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)
  • 7. GETTING YOUR FONTS INTO YOUR SITE
  • 8. Browser Support Firefox 3.5 Chrome 4 Opera 10 Safari 3.1 IE4
  • 9. @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
  • 10. 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
  • 11. LINK CODE <link href='http://fonts.googleapis.com/css? family=FontName&v2' rel='stylesheet' type='text/css'> EXAMPLE FROM GOOGLE FONTS
  • 12. YOUR CSS h2 { font-family: "Your typeface", Georgia, serif; } STYLE AS USUAL
  • 13. WHERE TO FIND THESE COOL FONTS?
  • 27. FREE PROBLEMS ๏ Quality not guaranteed ๏ Unknown rendering (hinting) ๏ Poorly drawn ๏ Poorly kerned
  • 28. Complete Sets Reklame I’d Love to Go! Reklame DEMO FREE I’d Love to Go!
  • 29. font hinting A font test with hinting (lower rows) and without hinting (upper rows) at 100% (above) and 400% (below). Note the increased edge contrast with the hinted text but more faithful character shape and more natural inter-character spacing in the unhinted text. http://en.wikipedia.org/wiki/Font_hinting
  • 30. Kerning VARIATION League Gothic VARIATION BEBAS Spaces between ALL letters should be even
  • 31. MY LAST 2 CENTS ๏ Make sure you own the license ๏ Read the EULA ๏ Desktop licenses are not the same as web ๏ Avoid liability issues
  • 34. Old Style Slanted serifs, a moderate transition between the thick and thin strokes of a le erform, and a diagonal stress (the angle of a line drawn through the thinnest parts of curved le ers). Handgloves Goudy Old Style Handgloves Palatino
  • 35. Modern Thin, horizontal serifs, a radical difference between the thick and thin strokes of a le erform, and a vertical stress. Handgloves Bodoni Handgloves Didot
  • 36. Slab Serif Thick, horizontal serifs, li le to no difference between the thick and thin strokes, and a vertical stress. Clarendon Handgloves Handgloves Archer
  • 37. San Serif No serifs, and most o en monoweight (the strokes are pre y much one thickness) Handgloves Helvetica Handgloves League Gothic
  • 38. Script Anything with a flowing, handwri en style. Handgloves Bello Handgloves Reklame
  • 39. 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. Handgloves HandCancelled Handgloves Stencil
  • 40. Know your audience and platform
  • 41. Large x-height & counters for body text the larger the bowls on le ers like “b” and “h” the easier your text will be to read on a screen, especially at small sizes. hobo hobo Small x-height & counters Large x-height & counters Cochin Georgia
  • 42. Check your 1, I, and l the number one, capital “i”, and lowercase “L” should be distinct. 1Il 1Il 1Il Gill Sans Georgia Museo
  • 43. Readability At small sizes fonts with larger variation in weights will be harder to read. Handgloves Bodoni 80px Bodoni 24px Handgloves Handgloves Verdana 80px Verdana 24px Handgloves
  • 44. Headline Vs. Text Five quacking zephyrs Five quacking jolt my wax bed. zephyrs Flummoxed by job, kvetching W. zaps Iraq. Cozy sphinx waves quart jug of bad milk. A very bad quack might jinx zippy fowls. Few jolt my wax bed. quips galvanized the mock jury box. Quick Flummoxed by job, kvetching W. zaps Iraq. Cozy sphinx waves brown dogs jump over the lazy fox. The jay, quart jug of bad milk. A very bad quack might jinx zippy fowls. pig, fox, zebra, and my wolves quack! Blowzy Few quips galvanized the mock jury box. Quick brown dogs jump red vixens fight for a quick jump. Joaquin Phoenix was gazed by MTV for luck. A over the lazy fox. The jay, pig, fox, zebra, and my wolves quack! wizard’s job is to vex chumps quickly in fog. Blowzy red vixens fight for a quick jump. Joaquin Phoenix was Watch "Jeopardy! ", Alex Trebek's fun gazed by MTV for luck. A wizard’s job is to vex chumps quickly in TV quiz game. Woven silk pyjamas exchanged fog. Watch "Jeopardy! ", Alex Trebek's fun TV quiz game. Woven for blue quartz. silk pyjamas exchanged for blue quartz. League Gothic as headline Droid Serif as headline Droid Serif as body League Gothic as body
  • 45. Appropriate Always honor your content and audience first. Choose fonts that are relevant to your subject before choosing what’s new and trendy. S ,N . Y ’ L r vr w r.
  • 46. replaced all headings in nytimes.com with lobster using fontfriend
  • 48. 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
  • 50. 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.
  • 51. Though the current trend is big headlines...
  • 56. Limiting yourself to one font can work beautifully as well.
  • 60. Julian Hansen So You Need A Typeface by Julian Hansen
  • 61. WHY YOU SHOULD CARE ABOUT TYPOGRAPHY
  • 62. 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.
  • 63. 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.
  • 64. You need to decide what’s important
  • 67. big headline med body small detail red box for emphasis red type for emphasis creativemornings.com
  • 68. 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 ma er which you choose, try to limit yourself to using only one. Combinations such as caps-bold-italic are disruptive and look clumsy.
  • 69. Good The quick, brown fox jumps over a lazy dog. DJs flock by when MTV ax quiz prog. Junk MTV quiz graced by fox whelps. Bawds jog, flick quartz, vex nymphs. Waltz, bad nymph, for quick jigs vex! Fox nymphs grab quick-jived waltz. Brick quiz whangs jumpy veldt fox. Bright vixens jump; dozy fowl quack. Bad The quick, brown fox JUMPS OVER A LAZY DOG. DJs flock by when MTV ax quiz prog. Junk MTV quiz graced by fox whelps. Bawds jog, flick quartz, vex nymphs. Waltz, bad nymph, for quick jigs vex! Fox nymphs grab quick-jived waltz. Brick quiz whangs jumpy veldt fox. Bright vixens jump; dozy fowl quack.
  • 70. SPACE ๏ Keep line length readable, not too long or short. ๏ Adjust the line-height to give more ๏ White space
  • 71. 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”
  • 72. Line Height NO The quick, brown fox jumps over a lazy dog. DJs flock by when MTV ax quiz prog. Junk MTV quiz graced by fox whelps. Bawds jog, flick quartz, vex nymphs. Waltz, bad nymph, for quick jigs vex! Fox nymphs grab quick-jived waltz. Brick quiz whangs jumpy veldt fox. Bright vixens jump; dozy fowl quack. YES The quick, brown fox jumps over a lazy dog. DJs flock by when MTV ax quiz prog. Junk MTV quiz graced by fox whelps. Bawds jog, flick quartz, vex nymphs. Waltz, bad nymph, for quick jigs vex! Fox nymphs grab quick-jived waltz. Brick quiz whangs jumpy veldt fox. Bright vixens jump; dozy fowl quack. NO The quick, brown fox jumps over a lazy dog. DJs flock by when MTV ax quiz prog. Junk MTV quiz graced by fox whelps. Bawds jog, flick quartz, vex nymphs. Waltz, bad nymph, for quick jigs vex! Fox nymphs grab quick-jived waltz. Brick quiz whangs jumpy veldt fox. Bright vixens jump; dozy fowl quack.
  • 73. Letter Spacing NO Cozy sphinx waves quart jug of bad milk. YES Cozy sphinx waves quart jug of bad milk. NO Cozy sphinx waves quar t jug of bad milk. OK C O Z Y S P H I N X WAV E S
  • 74. 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 pa erned. It’s simply space that is le vacant. The vacant space makes it easier for the reader to navigate through the content of your site.
  • 75. be a type rockstar
  • 76. Read Stop Stealing Sheep The Elements of & find out how type works Typographic Style by Erik Spiekermann & E.M. Ginge by Robert Bringhurst
  • 77. - 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.
  • 78. – The en dash (&#8211;) used to express a range of values or a distance The Red Sox beat the Yankees 4–0.
  • 79. — The em dash (&#8212;) used to indicate a break in thought The pizza—with warm cheese and spicy pepperoni—was delicious.
  • 80. Be Smart not Dumb ‶dumb double quotes‶ #8216; = opening single quote “smart double quotes” &#8217 = closing single quote ‵dumb single quotes‵ &#8220 = opening double quote “smart single quotes” &#8221 = closing double quote
  • 81. thirty-four h p://www.jimgodfreydesign.com/typeSins.pdf Two spaces between sentences. Indenting a paragraph too far. Repent of this sin by using only one space. The standard indent for a paragraph is 1 em, not ½ inch. Most software has default tabs set for ½ inch, so adjust the tabs. Dumb quotes instead of smart quotes. Evil: "Thou shalt not misuse type" Good: “Thou shalt not misuse type” Failing to hang punctuation into the margin. Punctuation has less visual weight than letters or numbers. Dumb apostrophe instead of a smart apostrophe. Compensate for this in display text by hanging the punctuation into the margin. Profane: Don't use prime marks Sacred: Don’t use prime marks By the way, apostrophes always face this way: Pot o’ gold. Failing to use or create fractions. They never face this way: Pot ‘o gold. Wicked: 1/2 Righteous: ½ Failing to tuck periods/commas inside quotes marks. Incorrectly abbreviating AM and PM. Immoral: “I love type so much”, she confessed. Unclean: am, AM, A.M. Relatively Clean: a.m. Clean: a.m. or AM Chaste: “I love type so much,” she testi ed. Failing to provide margins for type in a box. Failing to kern display type. Unseemly gaps can impede readability and be distracting to the reader. Adjusting the spacing between letters will assuage your guilt. Faux italic/oblique, bold and small cap type. Impure: Italic Pure: Italic Using a hyphen instead of an en dash. Sinful: Bold Virtuous: Bold Use an en dash to indicate a duration of time instead of the word “to”: Unkosher: SMALLCAPS Kosher: Smallcaps the 8–10 commandments, not 8-10 commandments. Using two hyphens instead of an em dash. Strokes that encroach upon letterforms. An em dash signi es a change in thought—or a parenthetical phrase—within Hellacious Heavenly Thiry-Four Typographic Sins by Jim Godfrey
  • 99. I was going to put together some demos on how to create these effects....
  • 100. but Chris Spooner of Line25 already has some great ones. http://line25.com/articles/using-css-text-shadow-to-create-cool-text-effects
  • 101. RESOURCES ๏ typedia.com ๏ typophile.com ๏ ilovetype.com ๏ alistapart.com ๏ le ering.js ๏ ffffallback.com ๏ ifontyou.com
  • 102. THANKS! martha re ig • cykod.com @artimated