84
HINTS & SCALES The Science & Art of Designing With Web Type Sunday, January 27, 13

Hints & Scales: The Art and Science of Web Type

Embed Size (px)

DESCRIPTION

An introduction into the theory and technical details of web type.

Citation preview

Page 1: Hints & Scales: The Art and Science of Web Type

HINTS & SCALESThe Science & Art of Designing With Web Type

Sunday, January 27, 13

Page 2: Hints & Scales: The Art and Science of Web Type

I N T RO D U C T I O N S

Ira F. Cummings

Brand Strategist and Designeremail: [email protected]: iracummings.comtwitter: @irafcummings

Sunday, January 27, 13

Page 3: Hints & Scales: The Art and Science of Web Type

T H E B A S I C O U T L I N E

Sunday, January 27, 13

Page 4: Hints & Scales: The Art and Science of Web Type

T H E B A S I C O U T L I N E

The Importance of Web Type

Sunday, January 27, 13

Page 5: Hints & Scales: The Art and Science of Web Type

T H E B A S I C O U T L I N E

The Importance of Web Type

Type Fundamentals

Sunday, January 27, 13

Page 6: Hints & Scales: The Art and Science of Web Type

T H E B A S I C O U T L I N E

The Importance of Web Type

Type Fundamentals

Technical Implementation

Sunday, January 27, 13

Page 7: Hints & Scales: The Art and Science of Web Type

T H E B A S I C O U T L I N E

The Importance of Web Type

Type Fundamentals

Technical Implementation

Problems and Solutions

Sunday, January 27, 13

Page 8: Hints & Scales: The Art and Science of Web Type

T H E B A S I C O U T L I N E

The Importance of Web Type

Type Fundamentals

Technical Implementation

Problems and Solutions

The Future of Web Type

Sunday, January 27, 13

Page 9: Hints & Scales: The Art and Science of Web Type

T H E B A S I C O U T L I N E

The Importance of Web Type

Type Fundamentals

Technical Implementation

Problems and Solutions

The Future of Web Type

Resources

Sunday, January 27, 13

Page 10: Hints & Scales: The Art and Science of Web Type

Our Definition of Web Type

Non-system fonts, hosted remotely, that are displayed on a screen.

Sunday, January 27, 13

Page 11: Hints & Scales: The Art and Science of Web Type

What’s the Point?

Sunday, January 27, 13

Page 12: Hints & Scales: The Art and Science of Web Type

T H E P U R P O S E O F W E B T Y P E

Sunday, January 27, 13

Page 13: Hints & Scales: The Art and Science of Web Type

T H E P U R P O S E O F W E B T Y P E

Branding

Sunday, January 27, 13

Page 14: Hints & Scales: The Art and Science of Web Type

T H E P U R P O S E O F W E B T Y P E

Branding

Differentiation

Sunday, January 27, 13

Page 15: Hints & Scales: The Art and Science of Web Type

T H E P U R P O S E O F W E B T Y P E

Branding

Differentiation

For Your Readers’ Sake

Sunday, January 27, 13

Page 16: Hints & Scales: The Art and Science of Web Type

Type Fundamentals

Sunday, January 27, 13

Page 17: Hints & Scales: The Art and Science of Web Type

Character Terminology

BASIC CHARACTER ANATOMY

Sunday, January 27, 13

Page 18: Hints & Scales: The Art and Science of Web Type

C H A R AC T E R A N AT O M Y

The parts of a character

define its personality.

Understanding the personality helps us choose readable typefaces and set them beautifully.

Sunday, January 27, 13

Page 19: Hints & Scales: The Art and Science of Web Type

The basic anatomy of characters

Sunday, January 27, 13

Page 20: Hints & Scales: The Art and Science of Web Type

Paragraph Terminology

BASIC PARAGRAPH ANATOMY

Sunday, January 27, 13

Page 21: Hints & Scales: The Art and Science of Web Type

PA R AG R A P H A N AT O M Y: M E A S U R E

Measure

Very simply, it is the length of a line of text.

The general guideline is 40–65 characters, give or take and depending on the typeface.

Sunday, January 27, 13

Page 22: Hints & Scales: The Art and Science of Web Type

The measure needs to be just right

Sunday, January 27, 13

Page 23: Hints & Scales: The Art and Science of Web Type

PA R AG R A P H A N AT O M Y: L E A D I N G

Leading and line height set the spacing

between lines of type.

Sunday, January 27, 13

Page 24: Hints & Scales: The Art and Science of Web Type

The difference between leading a line height

Sunday, January 27, 13

Page 25: Hints & Scales: The Art and Science of Web Type

Leading in practice

Sunday, January 27, 13

Page 26: Hints & Scales: The Art and Science of Web Type

Exceptions to the leading rules

Sunday, January 27, 13

Page 27: Hints & Scales: The Art and Science of Web Type

Making Type Beautiful

MORE THAN READABLE

Sunday, January 27, 13

Page 28: Hints & Scales: The Art and Science of Web Type

M A K I N G T Y P E B E AU T I F U L

There are three main components

of beautiful typography:

Sunday, January 27, 13

Page 29: Hints & Scales: The Art and Science of Web Type

M A K I N G T Y P E B E AU T I F U L

There are three main components

of beautiful typography:

Contrast

Sunday, January 27, 13

Page 30: Hints & Scales: The Art and Science of Web Type

M A K I N G T Y P E B E AU T I F U L

There are three main components

of beautiful typography:

Contrast

Rhythm

Sunday, January 27, 13

Page 31: Hints & Scales: The Art and Science of Web Type

M A K I N G T Y P E B E AU T I F U L

There are three main components

of beautiful typography:

Contrast

Rhythm

Spacing

Sunday, January 27, 13

Page 32: Hints & Scales: The Art and Science of Web Type

M A K I N G T Y P E B E AU T I F U L : C O N T R A S T

Chose typefaces that are different from

each other, but work well together.

Make sure that different content (eg. headers, sub-heads, body copy) are visually differentiated.

Sunday, January 27, 13

Page 33: Hints & Scales: The Art and Science of Web Type

Typeface pairing examples

Sunday, January 27, 13

Page 34: Hints & Scales: The Art and Science of Web Type

M A K I N G T Y P E B E AU T I F U L : R H Y T H M

Our eyes recognize—and look for—

visual patterns in content.

One way to achieve this rhythm is with a baseline grid that uses a shared baseline measurement across the units of content.

Sunday, January 27, 13

Page 35: Hints & Scales: The Art and Science of Web Type

Type with no rhythm

Sunday, January 27, 13

Page 36: Hints & Scales: The Art and Science of Web Type

20px Baseline Grid

Sunday, January 27, 13

Page 37: Hints & Scales: The Art and Science of Web Type

20px baseline grid

Sunday, January 27, 13

Page 38: Hints & Scales: The Art and Science of Web Type

M A K I N G T Y P E B E AU T I F U L : R H Y T H M

Modular scale

Another way to create rhythm is with a scale that relates to your content or context.

Sunday, January 27, 13

Page 39: Hints & Scales: The Art and Science of Web Type

M A K I N G T Y P E B E AU T I F U L : R H Y T H M

Modular scale: an example

Number 1: 14px (base type size)

Number 2: 40px (touch target size)

Ratio: 1:1.618 (golden section)

Multiply the numbers by the ratio to derive a variety of number to use.

406.4

247.1

251.1

169.4

104.7

95.9

64.7

59.3

40.0

36.6

24.7

22.6

15.2

14.0

9.4

8.6

Sunday, January 27, 13

Page 40: Hints & Scales: The Art and Science of Web Type

Type with modular scale

406.4

247.1

251.1

169.4

104.7

95.9

64.7

59.3

40.0

36.6

24.7

22.6

15.2

14.0

9.4

8.6

Sunday, January 27, 13

Page 41: Hints & Scales: The Art and Science of Web Type

M A K I N G T Y P E B E AU T I F U L : R H Y T H M

It’s easy to build your own scale:

Use modularscale.com to do the math.

Sunday, January 27, 13

Page 42: Hints & Scales: The Art and Science of Web Type

M A K I N G T Y P E B E AU T I F U L : S PAC I N G

The (negative) space around type is

just as important as the content.

Look for ways to creatively focus the readers eyes on the content.

Sunday, January 27, 13

Page 43: Hints & Scales: The Art and Science of Web Type

Spacing on theverge.com

Sunday, January 27, 13

Page 44: Hints & Scales: The Art and Science of Web Type

TechnicalImplementation

Sunday, January 27, 13

Page 45: Hints & Scales: The Art and Science of Web Type

Implementation

THIRD-PARTY SERVICESSELF-HOSTED FONT FILES

Sunday, January 27, 13

Page 46: Hints & Scales: The Art and Science of Web Type

I M P L E M E N TAT I O N : 3 R D -PA RT Y S E RV I C E S

3rd-party services provide a license for

the type, as well as plug-and-play code.

Services allow access to a large type library for a reoccurring fee, usually based on a bandwidth or page-view metric.

Sunday, January 27, 13

Page 47: Hints & Scales: The Art and Science of Web Type

I M P L E M E N TAT I O N : U S I N G @ F O N T-FAC E

Serving font files from your own server via the @font-face CSS attribute.

Purchase a license and host font files on your own server.

Easy to implement with CSS alone.

Sunday, January 27, 13

Page 48: Hints & Scales: The Art and Science of Web Type

I M P L E M E N TAT I O N : U S I N G @ F O N T-FAC E

In your stylesheet:

@font-face {! font-family: ‘Univers Regular’; /* Typeface name */! src: url('Univers_Reg.eot?') format('embedded-opentype'), !! ! /* IE, ? prevents a 404 on .woff/.ttf tiles */! url('Univers_Reg.otf') format('opentype'), /* Moz/Webkit */! url('Univers_Reg.svg') format('svg'); /* iOS < 4.0 */}

Then:

p {! font-family: ‘Univers Regular’, ‘Helvetica’, sans-serif;! font-weight: 400; /* avoids browser issues */}

Sunday, January 27, 13

Page 49: Hints & Scales: The Art and Science of Web Type

Browser Support

NERVOUS?

Sunday, January 27, 13

Page 50: Hints & Scales: The Art and Science of Web Type

B ROW S E R S U P P O RT

It’s pretty good actually (phew)

If you serve the right font file, @font-face is supported by all modern browsers.

The main exception is Opera Mini.

Sunday, January 27, 13

Page 51: Hints & Scales: The Art and Science of Web Type

I M P L E M E N TAT I O N : U S I N G @ F O N T-FAC E

A note about formats:

EOT (Embedded Open Type) works for IE and only for IE.

OTF (Open-Type Font) is your best cross-browser option, with…

TTF (True Type Font) and…

WOFF (Web Open Font Format) coming in second.

SVG fonts are a legacy for format for old version of iOS Safari, the Android browser & Chrome.

Sunday, January 27, 13

Page 52: Hints & Scales: The Art and Science of Web Type

Anticipating Problems & Finding Solutions

Sunday, January 27, 13

Page 53: Hints & Scales: The Art and Science of Web Type

Technical Issues

DOWNLOAD SIZESSERVER REQUESTSTYPE UNITS

Sunday, January 27, 13

Page 54: Hints & Scales: The Art and Science of Web Type

T E C H N I C A L I S S U E S : D OW N L OA D S I Z E S&

Keeping download file size small will

improve the experience all around.

Minimize the size and number of different font files that a user has to download.

Sunday, January 27, 13

Page 55: Hints & Scales: The Art and Science of Web Type

T E C H N I C A L I S S U E S : H T T P R E Q U E S T S

With each server request there is the

potential for more issues.

Sunday, January 27, 13

Page 56: Hints & Scales: The Art and Science of Web Type

T E C H N I C A L I S S U E S : T Y P E U N I T S

With CSS, there are a variety of ways

to define the size of type (and leading,

spacing, layout…).

Ems are still the best bet, but the math can get tricky since the context is important.

Sunday, January 27, 13

Page 57: Hints & Scales: The Art and Science of Web Type

Aesthetic Issues

RESPONSIVE DESIGNSCREEN RENDERINGFREE FONTSFONT STACKSREADABILITY

Sunday, January 27, 13

Page 58: Hints & Scales: The Art and Science of Web Type

A E S T H E T I C I S S U E S : R E S P O N S I V E D E S I G N

As the layout changes with context, your

type needs to change as well.

When content width changes, the measure, leading and spacing should remain comfortable.

Sunday, January 27, 13

Page 59: Hints & Scales: The Art and Science of Web Type

A E S T H E T I C I S S U E S : T Y P E R E N D E R I N G O N S C R E E N

Type rendering can vary widely.

Results will be different based on platform, operating system, browser, typeface and even the version of the typeface.

Sunday, January 27, 13

Page 60: Hints & Scales: The Art and Science of Web Type

Type rendering from vector to bitmap

Sunday, January 27, 13

Page 61: Hints & Scales: The Art and Science of Web Type

A word of caution: beware the

free web fonts.

Sunday, January 27, 13

Page 62: Hints & Scales: The Art and Science of Web Type

Dangerous waters ahead…

Sunday, January 27, 13

Page 63: Hints & Scales: The Art and Science of Web Type

A E S T H E T I C I S S U E S : F O N T S TAC K S

Even though you’re serving font files, you

still need to consider your font stacks.

Sunday, January 27, 13

Page 64: Hints & Scales: The Art and Science of Web Type

A E S T H E T I C I S S U E S : M A K I N G I T A L L WO R K

There is really one thing that you can do

to ensure excellent typography:

Sunday, January 27, 13

Page 65: Hints & Scales: The Art and Science of Web Type

A E S T H E T I C I S S U E S : M A K I N G I T A L L WO R K

There is really one thing that you can do

to ensure excellent typography:

Test

Sunday, January 27, 13

Page 66: Hints & Scales: The Art and Science of Web Type

The Future of Type on the Web

Sunday, January 27, 13

Page 67: Hints & Scales: The Art and Science of Web Type

Symbol & Icon Fonts

RESOLUTION-INDEPENDENT GRAPHICS FTW

Sunday, January 27, 13

Page 68: Hints & Scales: The Art and Science of Web Type

S Y M B O L & I C O N F O N T S

Save bandwidth and gain

resolution independence.

Currently, the best usage is as icons to complement text or as fancy glyphs that have good fallbacks.

Sunday, January 27, 13

Page 69: Hints & Scales: The Art and Science of Web Type

The Foundation Icon Font…font

Sunday, January 27, 13

Page 70: Hints & Scales: The Art and Science of Web Type

Ligatures

TWO USES FOR JOINING CHARACTERS

Sunday, January 27, 13

Page 71: Hints & Scales: The Art and Science of Web Type

L I G AT U R E S

Ligature support is on the horizon, but

relies on support from both browser

makers and type foundries, not to mention

the operating system.

Currently in the CSS3 draft as an option of the font-features-setting property.

Sunday, January 27, 13

Page 72: Hints & Scales: The Art and Science of Web Type

Why ligatures are important

Sunday, January 27, 13

Page 73: Hints & Scales: The Art and Science of Web Type

T H E L I T T L E S T U F F: L I G AT U R E S

Beyond more pleasing character

combinations, ligatures could allow

creative use of type.

Sunday, January 27, 13

Page 74: Hints & Scales: The Art and Science of Web Type

FF Chartwell

Sunday, January 27, 13

Page 75: Hints & Scales: The Art and Science of Web Type

Symbolset typefaces

Sunday, January 27, 13

Page 76: Hints & Scales: The Art and Science of Web Type

Resources

Sunday, January 27, 13

Page 77: Hints & Scales: The Art and Science of Web Type

R E S O U RC E S : M O D E R N I Z R

Modernizr to detect @font-face support

Sunday, January 27, 13

Page 78: Hints & Scales: The Art and Science of Web Type

R E S O U RC E S : F O N T S Q U I R R E L @ F O N T-FAC E G E N E R AT O R

Creates @font-face packages

Sunday, January 27, 13

Page 79: Hints & Scales: The Art and Science of Web Type

R E S O U RC E S : F O N T F O N T S U B S E T T E R

Strip fonts of non-essential characters

Sunday, January 27, 13

Page 80: Hints & Scales: The Art and Science of Web Type

R E S O U RC E S : R E S P O N S I V E T Y P E

FitText expands or shrinks type

based on context

Sunday, January 27, 13

Page 81: Hints & Scales: The Art and Science of Web Type

Set web type in context, in real time

Sunday, January 27, 13

Page 82: Hints & Scales: The Art and Science of Web Type

R E S O U RC E S : L I N K S

Slides and additional links

available at:

http://iracummings.com/type-talk/

Sunday, January 27, 13

Page 83: Hints & Scales: The Art and Science of Web Type

THANKSAny questions?

Sunday, January 27, 13

Page 84: Hints & Scales: The Art and Science of Web Type

C R E D I T S

This presentation set in Univers and Hoefler Text, designed by Adrian Frutiger and Jonathan Hoefler, respectively.

Demonstration copy is taken from en.wikipedia.org/wiki/Typography.

All photographic images pulled from The Commons on flickr.com.

All images of websites are captured from their respective domains.

Other content and images created by Ira F. Cummings.

This presentation created on a Mac with Keynote.

Sunday, January 27, 13