Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements...

73
Web Typography Sucks Richard Rutter Mark Boulton

Transcript of Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements...

Page 1: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

Web Typography Sucks

Richard RutterMark Boulton

演讲人
这份演示文稿主要讲解了基于网络的Typography的应用。我们先讲一下Typography是什么意思。
Note
Web Typography 糟透了 演讲:Richard Rutter, Mark Boulton 注释: Rex Chen
Page 2: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

typography /tʌɪ'pɒgrəfi/ •n. the art or process of setting and arranging types and printing from them. the style and appearance of printed matter. 2

Oxford English Dictionary

中文注解
牛津英语辞典: Typography 1.指设置和编排文字,以及其印刷的工艺和工序。2.印刷品的风格和样式。
演讲人
Note
牛津辞典这个定义显然已经落伍,它只是讲了印刷的问题,仍然停留在金属铸字时代。我写信给牛津辞典,他们也同意这个定义已经过时,因此我们需要新的定义。
Page 3: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

typography /tʌɪ'pɒgrəfi/ •n. the mechanical notation and arrangementof language.

Type & Typography by Phil Baines

Page 4: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

6'10"50°49'33"

演讲人
Note
大家认识这个符号吗?这是用来分隔尺寸、温度角度等的Prime
Page 5: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

6'10"50°49'33"

解说人
Note
它们有特定的用途
Page 6: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

6'10"50°49'33"

演讲人
Note
它们不是引号,或者撇号
Page 7: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

"It's a bloody aardvark!"

演讲者
Note
所以你在网上看到这样的标点使用时,要知道这是错误的。
Page 8: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

“It’s a bloody aardvark!”

演讲者
Note
这是正确的使用方法,使用了正确的标点符号。
Page 9: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

- hyphen Müller-Brockmann

– en dash 3–6 April; 25–30 mm a phrase marker – thus – with spaces

— em dash a phrase marker—thus—with no spaces — Doesn’t sound much like a bee to me. — It’s a bloody aardvark!

− minus 4−1=3

Note
连字符 - 用以连接未完单词,特殊名词等 短横线 - 用以表示范围和关联 长横线 - 类似破折号 减号 - 仅在数学中使用
Page 10: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a
演讲者
Note
太阳报,一份阅读年龄为8岁的英国报纸
Page 11: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a
Page 12: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a
演讲者
Note
就连他们都使用了正确的标点符号。注意长横线、引号和撇号
Page 13: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

www.alistapart.com/articles/emen

演讲者
Note
那么我们如何在web上正确使用这些标点呢?这片来自A List Apart的文章对此作了详细讲解
Page 14: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

“ opening double quote “” closing double quote ”‘ opening single quote ‘’ closing single quote ’– en dash –— em dash —− minus −× multiplication ×… ellipsis …

演讲者
Note
标点符号及其相关代码的列表,分别为合、闭双引号,合、闭单引号,短横线,长横线,减号,乘号和省略号
Page 15: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

D O W N L O A D

SmartyPants 1.5.1 (20 KB) — Fri 12 Mar 2004

What’s new?

D E S C R I P T I O N

SmartyPants is a free web publishing plug-in for Movable Type, Blosxom,

and BBEdit that easily translates plain ASCII punctuation characters into

“smart” typographic punctuation HTML entities.

SmartyPants can perform the following transformations:

B y J O H N G R U B E R

A R C H I V E S

P R O J E C T S

L I N K E D L I S T

M E M B E R S H I P

C O N T A C T

C O L O P H O N

演讲者
Note
SmartPants和Textile这些服务能帮助我们自动处理
Page 16: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

& & & & &

Acer
Note
“&”(和)符号
Page 17: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

5.1.3 In heads and titles usethe best available ampersand

Elements of Typographic Style by Robert Bringhurst

Note
“在题头和标题上尽量使用最好的'&'符号”
Page 18: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

&

演讲者
Note
Rotis Sans体的&号,最糟糕的&号之一
Page 19: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

{ H O M E } N O T E B O O K W O R K P U B L I C A T I O N S I C O N S H O P A B O U T C O N T A C T

Hand-crafted pixels & text.SimpleBits is a tiny web design studio founded by

designer and author Dan Cederholm. We create simple,

readable interfaces balanced with a standards-based

methodology. Learn more

Planet Microformats

A giant master feed of anything and everything tagged with “microformats”

from Brian Suda. {02.20.07}

Web Directions North

I’ve returned from several days in Vancouver, and the first-ever Web

Directions North. It was a great trip, a great conference, and my second

attempt at snowboarding in the last 20 years.

I’ll first say congrats to Maxine, John, Dave and

Derek for putting on what was an oustanding

L A T E S T F E A T U R E D W O R K

MTV.com

XHTML/CSS development

Cork’d

Creative Director

TravelPost.com

Logo + interface design

S P E A K I N G E V E N T S

SXSW Interactive

March 9-13, 2007 ~ Austin, TX

An Event Apart Boston

March 26-27, 2007 ~ Boston

@media 2007 (America)

May 24-25, 2007 ~ San Francisco

@media 2007 (Europe)

June 7-8, 2007 ~ London

R E C E N T N O T E B O O K A R T I C L E S & Q U I C K B I T S

www.simplebits.com

演讲者
Note
SimpleBits将&号的使用进行了完美的展现
Page 20: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a
演讲者
Note
注意它主副标题的&号,都是文本而非图片
Page 21: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

<h1>Hand-crafted pixels<span class="amp">&amp;</span> text.</h1>

span.amp { font-family: "Goudy Old Style", "Palatino", "Book Antiqua", serif; font-style: italic; font-size: 110%; }

演讲者
Note
背后的代码
Page 22: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

演讲者
Note
文本的节奏——行距,在浏览器的默认设置中消失殆尽。
Page 23: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

Aboard Minerva off the Coast of New England

Daniel is roused by a rooster on the forecastledeck† that is growing certainit’s not just imagining that light in the eastern sky. Unfortunately theeastern sky is off to port this morning. Yesterday it was starboard.Minerva has been sailing up and down the New England coast for thebetter part of a fortnight, trying to catch a wind that will decisively takeher out into deep water, or “off soundings,” as they say. They are probablynot more than fifty miles away from Boston.

Contrary Winds

Daniel goes back and sits by one of the windows – these are undershot sothat he can look straight down and see Minerva’s wake being born in afoamy collision around the rudder. He opens a small hatch below awindow and drops out a Fahrenheit thermometer on a string. It is the verylatest in temperature measurement from Europe – Enoch presented it tohim as a sort of party favour. He lets it bounce through the surf for a fewminutes, then hauls it in a takes a reading.

He’s been trying to perform this ritual every four hours – the objectivebeing to see if there’s any rumour that the North Atlantic is striped withcurrents of warm water. He can present the data to the Royal Society ifGod-willing he reaches London.

Text taken from Quicksilver by Neal Stephenson.

† The forecastledeck is theshort deck that, towardsthe ship’s bow, is builtabove the upperdeck.

演讲者
Note
一个基本的网页。一个H1标题、H2标题,一些段落和一个边注。 使用了默认的行距和边际(Margin)设置,并调整了一些字体大小。 段落:12px H1:18px H2:14px 边注:10px 不是太糟糕,但默认行距使文字有些比较难读,因此需要一些行距调整
Page 24: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

Aboard Minerva off the Coast of New England

Daniel is roused by a rooster on the forecastledeck† that is growing certain

it’s not just imagining that light in the eastern sky. Unfortunately the

eastern sky is off to port this morning. Yesterday it was starboard.

Minerva has been sailing up and down the New England coast for the

better part of a fortnight, trying to catch a wind that will decisively take

her out into deep water, or “off soundings,” as they say. They are probably

not more than fifty miles away from Boston.

Contrary Winds

Daniel goes back and sits by one of the windows – these are undershot so

that he can look straight down and see Minerva’s wake being born in a

foamy collision around the rudder. He opens a small hatch below a

window and drops out a Fahrenheit thermometer on a string. It is the very

latest in temperature measurement from Europe – Enoch presented it to

him as a sort of party favour. He lets it bounce through the surf for a few

minutes, then hauls it in a takes a reading.

He’s been trying to perform this ritual every four hours – the objective

being to see if there’s any rumour that the North Atlantic is striped with

currents of warm water. He can present the data to the Royal Society if

God-willing he reaches London.

Text taken from Quicksilver by Neal Stephenson.

† The forecastledeck is the

short deck that, towards

the ship’s bow, is built

above the upperdeck.

演讲者
Note
增大了行距。但由于浏览器的边际(Margin)设置,仍然显得有点凌乱。
Page 25: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

Aboard Minerva off the Coast of New England

Daniel is roused by a rooster on the forecastledeck† that is growing certain

it’s not just imagining that light in the eastern sky. Unfortunately the

eastern sky is off to port this morning. Yesterday it was starboard.

Minerva has been sailing up and down the New England coast for the

better part of a fortnight, trying to catch a wind that will decisively take

her out into deep water, or “off soundings,” as they say. They are probably

not more than fifty miles away from Boston.

Contrary Winds

Daniel goes back and sits by one of the windows – these are undershot so

that he can look straight down and see Minerva’s wake being born in a

foamy collision around the rudder. He opens a small hatch below a

window and drops out a Fahrenheit thermometer on a string. It is the very

latest in temperature measurement from Europe – Enoch presented it to

him as a sort of party favour. He lets it bounce through the surf for a few

minutes, then hauls it in a takes a reading.

He’s been trying to perform this ritual every four hours – the objective

being to see if there’s any rumour that the North Atlantic is striped with

currents of warm water. He can present the data to the Royal Society if

God-willing he reaches London.

Text taken from Quicksilver by Neal Stephenson.

† The forecastledeck is the

short deck that, towards

the ship’s bow, is built

above the upperdeck.

演讲者
Note
加入了间距18px的网格,你会发现下面的文字已经没有按照网格进行排列了。
Page 26: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

Aboard Minerva off the Coast of New England

Daniel is roused by a rooster on the forecastledeck† that is growing certain

it’s not just imagining that light in the eastern sky. Unfortunately the

eastern sky is off to port this morning. Yesterday it was starboard.

Minerva has been sailing up and down the New England coast for the

better part of a fortnight, trying to catch a wind that will decisively take

her out into deep water, or “off soundings,” as they say. They are probably

not more than fifty miles away from Boston.

Contrary Winds

Daniel goes back and sits by one of the windows – these are undershot so

that he can look straight down and see Minerva’s wake being born in a

foamy collision around the rudder. He opens a small hatch below a

window and drops out a Fahrenheit thermometer on a string. It is the very

latest in temperature measurement from Europe – Enoch presented it to

him as a sort of party favour. He lets it bounce through the surf for a few

minutes, then hauls it in a takes a reading.

He’s been trying to perform this ritual every four hours – the objective

being to see if there’s any rumour that the North Atlantic is striped with

currents of warm water. He can present the data to the Royal Society if

God-willing he reaches London.

Text taken from Quicksilver by Neal Stephenson.

† The forecastledeck is the

short deck that, towards

the ship’s bow, is built

above the upperdeck.

演讲者
Note
通过调整行边际(Margin),我们可以看到有了明显的改善。让我们再看一遍
Page 27: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

Aboard Minerva off the Coast of New England

Daniel is roused by a rooster on the forecastledeck† that is growing certain

it’s not just imagining that light in the eastern sky. Unfortunately the

eastern sky is off to port this morning. Yesterday it was starboard.

Minerva has been sailing up and down the New England coast for the

better part of a fortnight, trying to catch a wind that will decisively take

her out into deep water, or “off soundings,” as they say. They are probably

not more than fifty miles away from Boston.

Contrary Winds

Daniel goes back and sits by one of the windows – these are undershot so

that he can look straight down and see Minerva’s wake being born in a

foamy collision around the rudder. He opens a small hatch below a

window and drops out a Fahrenheit thermometer on a string. It is the very

latest in temperature measurement from Europe – Enoch presented it to

him as a sort of party favour. He lets it bounce through the surf for a few

minutes, then hauls it in a takes a reading.

He’s been trying to perform this ritual every four hours – the objective

being to see if there’s any rumour that the North Atlantic is striped with

currents of warm water. He can present the data to the Royal Society if

God-willing he reaches London.

Text taken from Quicksilver by Neal Stephenson.

† The forecastledeck is the

short deck that, towards

the ship’s bow, is built

above the upperdeck.

Note
调整之前
Page 28: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

Aboard Minerva off the Coast of New England

Daniel is roused by a rooster on the forecastledeck† that is growing certain

it’s not just imagining that light in the eastern sky. Unfortunately the

eastern sky is off to port this morning. Yesterday it was starboard.

Minerva has been sailing up and down the New England coast for the

better part of a fortnight, trying to catch a wind that will decisively take

her out into deep water, or “off soundings,” as they say. They are probably

not more than fifty miles away from Boston.

Contrary Winds

Daniel goes back and sits by one of the windows – these are undershot so

that he can look straight down and see Minerva’s wake being born in a

foamy collision around the rudder. He opens a small hatch below a

window and drops out a Fahrenheit thermometer on a string. It is the very

latest in temperature measurement from Europe – Enoch presented it to

him as a sort of party favour. He lets it bounce through the surf for a few

minutes, then hauls it in a takes a reading.

He’s been trying to perform this ritual every four hours – the objective

being to see if there’s any rumour that the North Atlantic is striped with

currents of warm water. He can present the data to the Royal Society if

God-willing he reaches London.

Text taken from Quicksilver by Neal Stephenson.

† The forecastledeck is the

short deck that, towards

the ship’s bow, is built

above the upperdeck.

Note
调整之后
Page 29: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

Aboard Minerva off the Coast of New England

Daniel is roused by a rooster on the forecastledeck† that is growing certain

it’s not just imagining that light in the eastern sky. Unfortunately the

eastern sky is off to port this morning. Yesterday it was starboard.

Minerva has been sailing up and down the New England coast for the

better part of a fortnight, trying to catch a wind that will decisively take

her out into deep water, or “off soundings,” as they say. They are probably

not more than fifty miles away from Boston.

Contrary Winds

Daniel goes back and sits by one of the windows – these are undershot so

that he can look straight down and see Minerva’s wake being born in a

foamy collision around the rudder. He opens a small hatch below a

window and drops out a Fahrenheit thermometer on a string. It is the very

latest in temperature measurement from Europe – Enoch presented it to

him as a sort of party favour. He lets it bounce through the surf for a few

minutes, then hauls it in a takes a reading.

He’s been trying to perform this ritual every four hours – the objective

being to see if there’s any rumour that the North Atlantic is striped with

currents of warm water. He can present the data to the Royal Society if

God-willing he reaches London.

Text taken from Quicksilver by Neal Stephenson.

† The forecastledeck is the

short deck that, towards

the ship’s bow, is built

above the upperdeck.

演讲者
Note
现在去掉网格
Page 30: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

Aboard Minerva off the Coast of New England

Daniel is roused by a rooster on the forecastledeck† that is growing certain

it’s not just imagining that light in the eastern sky. Unfortunately the

eastern sky is off to port this morning. Yesterday it was starboard.

Minerva has been sailing up and down the New England coast for the

better part of a fortnight, trying to catch a wind that will decisively take

her out into deep water, or “off soundings,” as they say. They are probably

not more than fifty miles away from Boston.

Contrary Winds

Daniel goes back and sits by one of the windows – these are undershot so

that he can look straight down and see Minerva’s wake being born in a

foamy collision around the rudder. He opens a small hatch below a

window and drops out a Fahrenheit thermometer on a string. It is the very

latest in temperature measurement from Europe – Enoch presented it to

him as a sort of party favour. He lets it bounce through the surf for a few

minutes, then hauls it in a takes a reading.

He’s been trying to perform this ritual every four hours – the objective

being to see if there’s any rumour that the North Atlantic is striped with

currents of warm water. He can present the data to the Royal Society if

God-willing he reaches London.

Text taken from Quicksilver by Neal Stephenson.

† The forecastledeck is the

short deck that, towards

the ship’s bow, is built

above the upperdeck.

演讲者
Note
现在我们讲一下这是如何实现的,请大家注意我们要讲的是比较技术性的东西了。 首先我们定义了网格,18px,这种情况下基本文本12px就可以匹配这个网格。
Page 31: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

body { font-size: 12px; }

p { font-size: 1em; /* 12px */ line-height: 1.5em; /* 18px */ margin: 0 0 1.5em 0; }

line height: 18px ÷ 12px = 1.5em

演讲者
Note
我们设置基本字号为12px。其他尺寸都以它为标准。将段落文字设置为基本字号。行距根据网格距离除以基本字号来计算,18px/12px=1.5em
Page 32: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

Aboard Minerva off the Coast of New England

Daniel is roused by a rooster on the forecastledeck† that is growing certain

it’s not just imagining that light in the eastern sky. Unfortunately the

eastern sky is off to port this morning. Yesterday it was starboard.

Minerva has been sailing up and down the New England coast for the

better part of a fortnight, trying to catch a wind that will decisively take

her out into deep water, or “off soundings,” as they say. They are probably

not more than fifty miles away from Boston.

Contrary Winds

Daniel goes back and sits by one of the windows – these are undershot so

that he can look straight down and see Minerva’s wake being born in a

foamy collision around the rudder. He opens a small hatch below a

window and drops out a Fahrenheit thermometer on a string. It is the very

latest in temperature measurement from Europe – Enoch presented it to

him as a sort of party favour. He lets it bounce through the surf for a few

minutes, then hauls it in a takes a reading.

He’s been trying to perform this ritual every four hours – the objective

being to see if there’s any rumour that the North Atlantic is striped with

currents of warm water. He can present the data to the Royal Society if

God-willing he reaches London.

Text taken from Quicksilver by Neal Stephenson.

† The forecastledeck is the

short deck that, towards

the ship’s bow, is built

above the upperdeck.

演讲者
Note
然后我们考虑主标题H1,18px
Page 33: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

h1 { font-size: 1.5em; /* 18px */ line-height: 1em; /* 18px */ margin: 0 0 1em 0; }

font size: 18px ÷ 12px = 1.5em line height: 18px ÷ 18px = 1em

演讲者
Note
H1的字号为想要字号的像素数除以基本字号,即18px/12px=1.5em H1的行距为18px/18px=1em
Page 34: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

Aboard Minerva off the Coast of New England

Daniel is roused by a rooster on the forecastledeck† that is growing certain

it’s not just imagining that light in the eastern sky. Unfortunately the

eastern sky is off to port this morning. Yesterday it was starboard.

Minerva has been sailing up and down the New England coast for the

better part of a fortnight, trying to catch a wind that will decisively take

her out into deep water, or “off soundings,” as they say. They are probably

not more than fifty miles away from Boston.

Contrary Winds

Daniel goes back and sits by one of the windows – these are undershot so

that he can look straight down and see Minerva’s wake being born in a

foamy collision around the rudder. He opens a small hatch below a

window and drops out a Fahrenheit thermometer on a string. It is the very

latest in temperature measurement from Europe – Enoch presented it to

him as a sort of party favour. He lets it bounce through the surf for a few

minutes, then hauls it in a takes a reading.

He’s been trying to perform this ritual every four hours – the objective

being to see if there’s any rumour that the North Atlantic is striped with

currents of warm water. He can present the data to the Royal Society if

God-willing he reaches London.

Text taken from Quicksilver by Neal Stephenson.

† The forecastledeck is the

short deck that, towards

the ship’s bow, is built

above the upperdeck.

演讲者
Note
注意边注,即使文字很小(10px),但仍然按照网格排列
Page 35: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

.sidenote { font-size: 0.8333em; /* 10px */ line-height: 1.8em; /* 18px */ }

font size: 10px ÷ 12px = 0.8333emline height: 18px ÷ 10px = 1.8em

演讲者
Note
边注字号一样,用想要的字号除以基本字号,10px/12px=0.8333em。不要担心小数位数,浏览器会自己进行调整。
Page 36: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

Aboard Minerva off the Coast of New England

Daniel is roused by a rooster on the forecastledeck† that is growing certain

it’s not just imagining that light in the eastern sky. Unfortunately the

eastern sky is off to port this morning. Yesterday it was starboard.

Minerva has been sailing up and down the New England coast for the

better part of a fortnight, trying to catch a wind that will decisively take

her out into deep water, or “off soundings,” as they say. They are probably

not more than fifty miles away from Boston.

Contrary Winds

Daniel goes back and sits by one of the windows – these are undershot so

that he can look straight down and see Minerva’s wake being born in a

foamy collision around the rudder. He opens a small hatch below a

window and drops out a Fahrenheit thermometer on a string. It is the very

latest in temperature measurement from Europe – Enoch presented it to

him as a sort of party favour. He lets it bounce through the surf for a few

minutes, then hauls it in a takes a reading.

He’s been trying to perform this ritual every four hours – the objective

being to see if there’s any rumour that the North Atlantic is striped with

currents of warm water. He can present the data to the Royal Society if

God-willing he reaches London.

Text taken from Quicksilver by Neal Stephenson.

† The forecastledeck is the

short deck that, towards

the ship’s bow, is built

above the upperdeck.

演讲者
Note
现在考虑副标题,比较复杂。设置为14px,然后设置上下不对称的边际(Margin)。
Page 37: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

h2 { font-size: 1.1667em; line-height: 1.286em; margin-top: 1.929em; margin-bottom: 0.643em; }

font size: 14px ÷ 12px = 1.1667emline height: 18px ÷ 14px = 1.286em

top margin: 27px ÷ 14px = 1.929embot margin: 9px ÷ 14px = 0.643em

演讲者
Note
字号和行距依然是一样的算法。上下行距仍然用想要的行距除以字号
Page 38: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

Aboard Minerva off the Coast of New England

Daniel is roused by a rooster on the forecastledeck† that is growing certain

it’s not just imagining that light in the eastern sky. Unfortunately the

eastern sky is off to port this morning. Yesterday it was starboard.

Minerva has been sailing up and down the New England coast for the

better part of a fortnight, trying to catch a wind that will decisively take

her out into deep water, or “off soundings,” as they say. They are probably

not more than fifty miles away from Boston.

Contrary Winds

Daniel goes back and sits by one of the windows – these are undershot so

that he can look straight down and see Minerva’s wake being born in a

foamy collision around the rudder. He opens a small hatch below a

window and drops out a Fahrenheit thermometer on a string. It is the very

latest in temperature measurement from Europe – Enoch presented it to

him as a sort of party favour. He lets it bounce through the surf for a few

minutes, then hauls it in a takes a reading.

He’s been trying to perform this ritual every four hours – the objective

being to see if there’s any rumour that the North Atlantic is striped with

currents of warm water. He can present the data to the Royal Society if

God-willing he reaches London.

Text taken from Quicksilver by Neal Stephenson.

† The forecastledeck is the

short deck that, towards

the ship’s bow, is built

above the upperdeck.

演讲者
Note
再看一遍最终成果
Page 39: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

fi

Page 40: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

Text taken from The New Typography by Jan Tschichold

Component parts of letterheads

Besides the format, there are also standards for the placing

of the component parts of business letterheads.

The authority for all these standards is sheet 676: we

show examples for the following pages.

Standards exist for:

. 1 The position of the address

. 2 Position for receipt and treatment marks

. 3 Sequence and position for the main information

. 4 Sequence and position of firm’s particulars

. 5 Side margin of at least 20mm

A standardized letterhead, before it is written, often gives the

impression that not enough room has been left for the letter

itself.

DIN

D IN

Component parts of letterheadsBesides the format, there are also standards for the placingof the component parts of business letterheads.

The authority for all these standards is sheet 676: weshow examples for the following pages.Standards exist for:

. 1 The position of the address

. 2 Position for receipt and treatment marks

. 3 Sequence and position for the main information

. 4 Sequence and position of firm’s particulars

. 5 Side margin of at least 20mmA standardized letterhead, before it is written, often gives theimpression that not enough room has been left for the letteritself.

DIN

D IN

演讲者
Note
这是一个没有任何行距和空间设置的列表
Page 41: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

Text taken from The New Typography by Jan Tschichold

Component parts of letterheads

Besides the format, there are also standards for the placingof the component parts of business letterheads.

The authority for all these standards is sheet 676: weshow examples for the following pages.

Standards exist for:. 1 The position of the address. 2 Position for receipt and treatment marks. 3 Sequence and position for the main information. 4 Sequence and position of firm’s particulars. 5 Side margin of at least 20mm

A standardized letterhead, before it is written, often gives theimpression that not enough room has been left for the letteritself.

DIN

D IN

演讲者
Note
通过设置行距和行边际为文本加入了空间
Page 42: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

Text taken from The New Typography by Jan Tschichold

Component parts of letterheads

Besides the format, there are also standards for the placingof the component parts of business letterheads.

The authority for all these standards is sheet 676: weshow examples for the following pages.

Standards exist for:

. 1 The position of the address

. 2 Position for receipt and treatment marks

. 3 Sequence and position for the main information

. 4 Sequence and position of firm’s particulars

. 5 Side margin of at least 20mm

A standardized letterhead, before it is written, often gives theimpression that not enough room has been left for the letteritself.

DIN

D IN

演讲者
Note
使用向左突出的行边际和粗体,强调列表,使列表读起来更加容易
Page 43: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

´

演讲者
Note
现在我们来简单讲一下排版
Page 44: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a
演讲者
Note
Robert Bringhurst的《The Elements of Typographic Style》是一本讲字体排印的书。
Page 45: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a
演讲者
Note
关于排版的一部分
Page 46: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a
演讲者
Note
Josef Muller-Brockmann的《Grid System》是一本关于排版的书
Page 47: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a
演讲者
Note
关于字体的一部分。很明显字体和排版息息相关
Page 48: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a
演讲者
Note
那么文字和排版到底有什么关系呢?我们先建立一个基本网格,长宽比为2:3,约等于黄金分割的1:1.618
Page 49: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

2

3

演讲者
Note
比例为2:3
Page 50: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a
演讲者
Note
将其均分成六等分
Page 51: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

M1em

演讲者
Note
我们现在将每个小格的边长定为1em
Page 52: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

2em

3em

Page 53: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

3em 3em 3em 3em 3em 3em

2em

2em

2em

2em

2em

2em

演讲者
Note
我们将此外推,添加一个0.5em的边距。新的网格还是保持了2:3的比例
Page 54: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

7.5em

4.5em

演讲者
Note
仍然是2:3
Page 55: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

13.5em

9.5em

Page 56: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a
演讲者
Note
现在做一个基本的网格架构
Page 57: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

Indent or center verse quotations

When setting verse, whether on the web or otherwise, the primary concern is not to deprive it of its “chosen form”, including matters of spacing and visual structure

演讲者
Note
我们现在添加一些文本到网格中,自号为1em,这样文字大小和网格的安排就有了直接的联系
Page 58: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

Indent or center verse quotations

When setting verse, whether on the web or otherwise, the primary concern is not to deprive it of its “chosen form”, including matters of spacing and visual structure

演讲者
Note
现在我们拿走网格
Page 59: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

Indent or center verse quotations

When setting verse, whether on the web or otherwise, the primary concern is not to deprive it of its “chosen form”, including matters of spacing and visual structure

演讲者
Note
现在文字间的空间并非随意设定,而是基于网格,并反过来仍然跟字号有联系。
Page 60: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

body { font-family: verdana, arial, helvetica, sans-serif}

演讲者
Note
大多数机器中安装的字体都很少,但它们都是按照屏幕显示要求精心设计的,因此拥抱它们吧。 以上显示的在Dreamweaver和大多数HTML和CSS编辑器下默认的字体设置组合实际上并不合适。
Page 61: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

VerdanaThe quick brown fox jumps over a lazy dog.

The quick brown fox jumps over a lazy dog.Arial

演讲者
Note
Verdana比Arial看上去大很多,因此Arial并不是Verdana合适的替补。可以试一下Tahoma或者Candara。
Page 62: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

Frutiger 0123abcdefigHJKlUnivers 0123abcdefigHJKl

Helvetica Neue 0123abcdefigHJKlm

Arial 0123abcdefigHJKlm

Page 63: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

body { font-family: “Frutiger”, “Univers”, “Helvetica Neue”, arial, helvetica, sans-serif;}

演讲者
Note
为什么上面代码的排列顺序是Helvetica Neue,Arial,Helvetica呢?因为Helvetica Neue已经随着OS X默认安装,并且根据屏幕显示进行了调整,尤其在小字体下,比标准Helvetica优秀很多
Page 64: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

Align corporate typefacesAlign corporate typefaces

演讲者
Note
根据品牌形象字体调整后的系统字体——Meta和Trebuchet
Page 65: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

Calibri 0123abcdefigHJKlmnopQRStu

Cambria 0123abcdefigHJKlmnopQRSCandara 0123abcdefigHJKlmnopQRS

Constantia 0123abcdefigHJKlmnopQRS

Corbel 0123abcdefigHJKlmnopQRSt

演讲者
Note
随Vista而来的微软的新字体
Page 66: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

1

H

2

He

3

Li

4

Be

5

B

6

C

7

N

8

O

9

F

10

Ne

11

Na

12

Mg

13

Al

14

Si

15

P

16

S

17

Cl

18

Ar

19

K

20

Ca

21

Sc

22

Ti

23

V

24

Cr

25

Mn

26

Fe

27

Co

28

Ni

29

Cu

30

Zn

31

Ga

32

Ge

33

As

34

Se

35

Br

36

Kr

37

Rb

38

Sr

39

Y

40

Zr

41

Nb

42

Mo

43

Tc

44

Ru

45

Rh

46

Pd

47

Ag

48

Cd

49

Ln

50

Sn

51

Sb

52

Te

53

I

54

Xe

55

Cs

56

Ba*

72

Hf

73

Ta

74

W

75

Re

76

Os

77

Ir

78

Pt

79

Au

80

Hg

81

Tl

82

Pb

83

Bi

84

Po

85

At

86

Rn

87

Fr

88

Ra**

104

Rf

105

Db

106

Sg

107

Bh

108

Hs

109

Mt

110

Ds

111

Rg

112

Uub

113

Uut

114

Uuq

115

Uup

116

Uuh

117

Uus

118

Uuo

Page 67: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

1

H

2

He

3

Li

4

Be

5

B

6

C

7

N

8

O

9

F

10

Ne

11

Na

12

Mg

13

Al

14

Si

15

P

16

S

17

Cl

18

Ar

19

K

20

Ca

21

Sc

22

Ti

23

V

24

Cr

25

Mn

26

Fe

27

Co

28

Ni

29

Cu

30

Zn

31

Ga

32

Ge

33

As

34

Se

35

Br

36

Kr

37

Rb

38

Sr

39

Y

40

Zr

41

Nb

42

Mo

43

Tc

44

Ru

45

Rh

46

Pd

47

Ag

48

Cd

49

Ln

50

Sn

51

Sb

52

Te

53

I

54

Xe

55

Cs

56

Ba*

72

Hf

73

Ta

74

W

75

Re

76

Os

77

Ir

78

Pt

79

Au

80

Hg

81

Tl

82

Pb

83

Bi

84

Po

85

At

86

Rn

87

Fr

88

Ra**

104

Rf

105

Db

106

Sg

107

Bh

108

Hs

109

Mt

110

Ds

111

Rg

112

Uub

113

Uut

114

Uuq

115

Uup

116

Uuh

117

Uus

118

Uuo

79Au

Page 68: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

1

H

2

He

3

Li

4

Be

5

B

6

C

7

N

8

O

9

F

10

Ne

11

Na

12

Mg

13

Al

14

Si

15

P

16

S

17

Cl

18

Ar

19

K

20

Ca

21

Sc

22

Ti

23

V

24

Cr

25

Mn

26

Fe

27

Co

28

Ni

29

Cu

30

Zn

31

Ga

32

Ge

33

As

34

Se

35

Br

36

Kr

37

Rb

38

Sr

39

Y

40

Zr

41

Nb

42

Mo

43

Tc

44

Ru

45

Rh

46

Pd

47

Ag

48

Cd

49

Ln

50

Sn

51

Sb

52

Te

53

I

54

Xe

55

Cs

56

Ba*

72

Hf

73

Ta

74

W

75

Re

76

Os

77

Ir

78

Pt

79

Au

80

Hg

81

Tl

82

Pb

83

Bi

84

Po

85

At

86

Rn

87

Fr

88

Ra**

104

Rf

105

Db

106

Sg

107

Bh

108

Hs

109

Mt

110

Ds

111

Rg

112

Uub

113

Uut

114

Uuq

115

Uup

116

Uuh

117

Uus

118

Uuo

47Ag

Page 69: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

1

H

2

He

3

Li

4

Be

5

B

6

C

7

N

8

O

9

F

10

Ne

11

Na

12

Mg

13

Al

14

Si

15

P

16

S

17

Cl

18

Ar

19

K

20

Ca

21

Sc

22

Ti

23

V

24

Cr

25

Mn

26

Fe

27

Co

28

Ni

29

Cu

30

Zn

31

Ga

32

Ge

33

As

34

Se

35

Br

36

Kr

37

Rb

38

Sr

39

Y

40

Zr

41

Nb

42

Mo

43

Tc

44

Ru

45

Rh

46

Pd

47

Ag

48

Cd

49

Ln

50

Sn

51

Sb

52

Te

53

I

54

Xe

55

Cs

56

Ba*

72

Hf

73

Ta

74

W

75

Re

76

Os

77

Ir

78

Pt

79

Au

80

Hg

81

Tl

82

Pb

83

Bi

84

Po

85

At

86

Rn

87

Fr

88

Ra**

104

Rf

105

Db

106

Sg

107

Bh

108

Hs

109

Mt

110

Ds

111

Rg

112

Uub

113

Uut

114

Uuq

115

Uup

116

Uuh

117

Uus

118

Uuo

29Cu

Page 70: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

1

H

2

He

3

Li

4

Be

5

B

6

C

7

N

8

O

9

F

10

Ne

11

Na

12

Mg

13

Al

14

Si

15

P

16

S

17

Cl

18

Ar

19

K

20

Ca

21

Sc

22

Ti

23

V

24

Cr

25

Mn

26

Fe

27

Co

28

Ni

29

Cu

30

Zn

31

Ga

32

Ge

33

As

34

Se

35

Br

36

Kr

37

Rb

38

Sr

39

Y

40

Zr

41

Nb

42

Mo

43

Tc

44

Ru

45

Rh

46

Pd

47

Ag

48

Cd

49

Ln

50

Sn

51

Sb

52

Te

53

I

54

Xe

55

Cs

56

Ba*

72

Hf

73

Ta

74

W

75

Re

76

Os

77

Ir

78

Pt

79

Au

80

Hg

81

Tl

82

Pb

83

Bi

84

Po

85

At

86

Rn

87

Fr

88

Ra**

104

Rf

105

Db

106

Sg

107

Bh

108

Hs

109

Mt

110

Ds

111

Rg

112

Uub

113

Uut

114

Uuq

115

Uup

116

Uuh

117

Uus

118

Uuo

6C

Page 71: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

ÿ

演讲者
Note
那么,到底谁来做什么事情?设计师?前端技术?开发者?信息架构师?还是内容添加者?
Page 72: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

It’s all our fault.

演讲者
Note
这都是我们的错。
Page 73: Web Typography Sucks · Web Typography 糟透了 演讲 ... the best available ampersand. Elements of Typographic Style. ... We create simple, readable interfaces balanced with a

Richard Rutter Clearleft.comMark Boulton Markboultondesign.com

http://webtypography.net/sxsw2007/