SlideShare a Scribd company logo
1 of 206
Download to read offline
Dominating the
Web Typography
Eduardo Shiota Yasuda — @shiota Conferência CSS Brasil
Hello!
twitter.com/shiota
github.com/eshiota
slideshare.net/eshiota
contato@eshiota.com
I Typography
Typography is everywhere.
We gotta remember the
roots of what we do.
15.000 BC – 12.500 BC
Altamira & Lascaux
3.000 BC – 1.500 BC
Pictographs
1.500 BC
Phoenician alphabet
750 BC
Greek alphabet
146 BC
Roman alphabet, “Capitalis quadrata”
0
Better materials, “Capitalis rustica”
4th – 5th centuries
Uncials and semi-uncials
8th century
Carolingian minuscules
12th century
Apex of goth art and Middle Ages
15th – 16th centuries
Renaissance, Gutenberg press, “Cursiva humanista”, type foundries
19th century
Industrial Revolution, linotype, Art Nouveau, display types
20th century
Modern Design, Avant-garde, Bauhaus, sans-serif types, digital typography
21th century
Web typography and CSS
The basics
Basics
Classification
Most of the classification
systems agree with these
type categories:
Serif types
Museo
The quick brown fox jumps
over the lazy dog.
Meta Serif
The quick brown fox jumps
over the lazy dog.
Times New Roman
The quick brown fox jumps
over the lazy dog.
Sans serif types
Futura
The quick brown fox jumps
over the lazy dog.
Museo Sans
The quick brown fox jumps
over the lazy dog.
Helvetica
The quick brown fox jumps
over the lazy dog.
Gothic types
Fette Fraktur
The quick brown fox jumps
over the lazy dog.
Goudy Text
The quick brown fox jumps
over the lazy dog.
Wilhelm Klingspor Gotisch
The quick brown fox jumps
over the lazy dog.
Cursive types
Lucida Calligraphy
The quick brown fox jumps
over the lazy dog.
Mistral
The quick brown fox jumps over
the lazy dog.
Apple Chancery
The quick brown fox jumps
over the lazy dog.
Display types
Comic Sans
The quick brown fox jumps
over the lazy dog.
Sketch Rockwell
The quick brown fox
jumps over the lazy dog.
GodOfWar
The quick brown fox jumps
over the lazy dog.
Dingbats
Bodoni Ornaments
The quick brown fox jumps
over the lazy dog.
Travel Icons
The quick brown fox jumps
over the lazy dog.
Wingdings
The quick brown fox jumps
over the lazy dog.
On the CSS, you may
choose generic families
as fallbacks.
.my-serif-text {
font-family: "Meta Serif", Times, serif;
}
.my-sans-serif-text {
font-family: "Proxima Nova", Arial, sans-serif;
}
.my-monospace-text {
font-family: Monaco, "Courier New", monospace;
}
.my-cursive-text {
font-family: "Zapf Chancery", "Brush Script", cursive;
}
.my-fantasy-text {
font-family: "Sketch Rockwell", Papyrus, fantasy;
}
Basics
Anatomy of a type
baseline
font size
Typography
baseline
descender height
x-height
cap height
ascender height
Typography
T
y
p
o
g
r
a
p
h
y
Basics
Units
Physical units
To deal with physical units,
you can’t rely on a screen.
pt picas millimetres inches
12 1 4.22 1/6
A4 (29.7cm × 21.0cm)
Pixel (px)
To deal with screens, you must
understand what are physical
and reference pixels.
A physical pixel is a physical
point on the display.
A reference pixel depends
on the device, software and
user settings.
A 16px font on a
smartphone screen won’t
have as many millimetres as
on a desktop screen.
Change, test, use media
queries, test again.
em unit (em)
“em” is a relative unit used
since the movable types.
It represents a type’s
full body size.
1 em
16px
1 em
margin-right: 1em;
16px
It’s always relative to its
context’s font size.
.wrapper {
font-size: 16px;
}
.parent {
font-size: 1.5em;
}
.child {
font-size: .5em;
}
Root em unit (rem)
“rem” is like “em” but always
relative to the root (html).
html {
font-size: 16px;
}
.wrapper {
font-size: 12px;
}
.parent {
font-size: 1.5rem;
}
.child {
font-size: 0.5rem;
}
For most of browsers and
cases, the default root
font size is 16px.
html {
font-size: 16px;
}
.wrapper {
font-size: 12px;
}
.parent {
font-size: 1.5rem;
}
.child {
font-size: 0.5rem;
}
html {
font-size: 100%;
}
.wrapper {
font-size: 12px;
}
.parent {
font-size: 1.5rem;
}
.child {
font-size: 0.5rem;
}
Rhythm
The way you space your
characters and text dictates
how a person will read it.
Rhythm
Line height
Line height is the distance
between each line of types.
The quick fox jumps
over the dog 0 pixels
Meta Serif 102px/102px
The quick fox jumps
over the dog
Meta Serif 102px/144px
42 pixels
A low line height makes the
text too difficult to read.
Helvetica 32px/32px
“The Guide says that the best drink in existence is the Pan
Galactic Gargle Blaster. It says that the effect of a Pan Galactic
Gargle Blaster is like having your brains smashed out by a slice
of lemon wrapped round a large gold brick.”
A large line height makes the
paragraph loose cohesion.
Helvetica 32px/96px
“The Guide says that the best drink in existence is the Pan
Galactic Gargle Blaster. It says that the effect of a Pan Galactic
Gargle Blaster is like having your brains smashed out by a slice
of lemon wrapped round a large gold brick.”
Find a comfortable proportion
through trial-and-error.
Helvetica 32px/48px
“The Guide says that the best drink in existence is the Pan
Galactic Gargle Blaster. It says that the effect of a Pan Galactic
Gargle Blaster is like having your brains smashed out by a slice
of lemon wrapped round a large gold brick.”
Each typeface might require a
different line height setting.
Bembo 32px/48px
“The Guide says that the best drink in existence is the Pan Galactic
Gargle Blaster. It says that the effect of a Pan Galactic Gargle Blaster is
like having your brains smashed out by a slice of lemon wrapped
round a large gold brick.”
Caslon 32px/48px
“The Guide says that the best drink in existence is the Pan
Galactic Gargle Blaster. It says that the effect of a Pan
Galactic Gargle Blaster is like having your brains smashed
out by a slice of lemon wrapped round a large gold brick.”
Rhythm
Baseline
Use a consistent vertical
proportion by following
a baseline.
9 reasons why cats will conquer the world. The number 5
will surprise you!
“More importantly, a towel has immense psychological value.
For some reason, if a strag (strag: nonhitchhiker) discovers that a hitchhiker has his towel with him, he will
automatically assume that he is also in possession of a toothbrush, washcloth, soap, tin of biscuits, flask, compass,
map, ball of string, gnat spray, wet-weather gear, space suit etc., etc.
Furthermore, the strag will then happily lend the hitchhiker any of these or a dozen other items that the hitchhiker
might have accidentally "lost.". What the strag will think is that any man that can hitch the length and breadth of the
Galaxy, rough it, slum it, struggle against terrible odds, win through and still know where his towel is, is clearly a
man to be reckoned with.”
9 reasons why cats will conquer the world. The number 5
will surprise you!
“More importantly, a towel has immense psychological value.
For some reason, if a strag (strag: nonhitchhiker) discovers that a hitchhiker has his towel with him, he will
automatically assume that he is also in possession of a toothbrush, washcloth, soap, tin of biscuits, flask, compass,
map, ball of string, gnat spray, wet-weather gear, space suit etc., etc.
Furthermore, the strag will then happily lend the hitchhiker any of these or a dozen other items that the hitchhiker
might have accidentally "lost.". What the strag will think is that any man that can hitch the length and breadth of the
Galaxy, rough it, slum it, struggle against terrible odds, win through and still know where his towel is, is clearly a
man to be reckoned with.”
Choose a line height for a
baseline, and make all
vertical values derive from it.
/* baseline = 24px */
body {
font-size: 16px;
line-height: 24px; /* baseline */
}
.article-title {
font-size: 32px;
line-height: 48px; /* 2 × baseline */
}
.article-excerpt {
font-size: 18px;
line-height: 24px; /* baseline */
}
img {
max-height: 312px; /* 13 × baseline */
}
p {
margin-bottom: 12px; /* 0.5 × baseline */
}
If you pre-process your CSS,
you ensure a consistent
typography using variables.
// _variables.scss
$base-font-size: 16px;
$baseline: 24px;
// On your project:
body {
font-size: $base-font-size;
line-height: ($baseline/$base-font-size); // 1.5
}
.article-title {
font-size: 2*$base-font-size;
line-height: 2*$baseline;
}
.article-excerpt {
font-size: 18px;
line-height: $baseline;
}
img {
max-height: 13*$baseline;
}
p {
margin-bottom: 0.5*$baseline;
}
Be aware that each browser
has its own baseline.
Rhythm
Letter spacing/tracking
Letter spacing is the
whitespace between
each single type.
Typography
Typography
letter-spacing: 10px;
Typography
letter-spacing: -10px;
The use of letter-spacing is
recommended for titles only.
Epic Movie Title
Epic Movie Title
Rhythm
Kerning
Kerning is a fine-tuning
between specific pairs
of characters.
Task
The browser default is
automatically
enabling/disabling it.
.kerning {
font-kerning: normal;
}
32+ 34+ 7+ 10+
Rhythm
Text indentation
You can manipulate the
text’s indentation, which
applies to its first line.
More importantly, a towel has immense psychological value.
For some reason, if a strag (strag: nonhitchhiker) discovers that a hitchhiker has his
towel with him, he will automatically assume that he is also in possession of a
toothbrush, washcloth, soap, tin of biscuits, flask, compass, map, ball of string, gnat
spray, wet-weather gear, space suit etc., etc.
Furthermore, the strag will then happily lend the hitchhiker any of these or a dozen
other items that the hitchhiker might have accidentally "lost.". What the strag will think
is that any man that can hitch the length and breadth of the Galaxy, rough it, slum it,
struggle against terrible odds, win through and still know where his towel is, is clearly a
man to be reckoned with.
More importantly, a towel has immense psychological value.
For some reason, if a strag (strag: nonhitchhiker) discovers that a hitchhiker has
his towel with him, he will automatically assume that he is also in possession of a
toothbrush, washcloth, soap, tin of biscuits, flask, compass, map, ball of string, gnat
spray, wet-weather gear, space suit etc., etc.
Furthermore, the strag will then happily lend the hitchhiker any of these or a dozen
other items that the hitchhiker might have accidentally "lost.". What the strag will think
is that any man that can hitch the length and breadth of the Galaxy, rough it, slum it,
struggle against terrible odds, win through and still know where his towel is, is clearly a
man to be reckoned with.
.post p {
text-indent: 2em;
}
For long texts, you can
skip the indentation on
the first paragraph.
More importantly, a towel has immense psychological value.
For some reason, if a strag (strag: nonhitchhiker) discovers that a hitchhiker has
his towel with him, he will automatically assume that he is also in possession of a
toothbrush, washcloth, soap, tin of biscuits, flask, compass, map, ball of string, gnat
spray, wet-weather gear, space suit etc., etc.
Furthermore, the strag will then happily lend the hitchhiker any of these or a dozen
other items that the hitchhiker might have accidentally "lost.". What the strag will think
is that any man that can hitch the length and breadth of the Galaxy, rough it, slum it,
struggle against terrible odds, win through and still know where his towel is, is clearly a
man to be reckoned with.
.post p {
text-indent: 2em;
}
.post p:first-of-type {
text-indent: 0;
}
More importantly, a towel has immense psychological value.
For some reason, if a strag (strag: nonhitchhiker) discovers that a hitchhiker has
his towel with him, he will automatically assume that he is also in possession of a
toothbrush, washcloth, soap, tin of biscuits, flask, compass, map, ball of string, gnat
spray, wet-weather gear, space suit etc., etc.
Furthermore, the strag will then happily lend the hitchhiker any of these or a dozen
other items that the hitchhiker might have accidentally "lost.". What the strag will think
is that any man that can hitch the length and breadth of the Galaxy, rough it, slum it,
struggle against terrible odds, win through and still know where his towel is, is clearly a
man to be reckoned with.
.post p + p {
text-indent: 2em;
}
Text styling
You can use CSS rules to
properly style your content,
like a well-authored book.
Styling
Titles & subtitles
Keep a clear hierarchy by
using different font sizes,
type faces and variants.
Styling
Quotes
A quote block can be
highlighted with margins
and pseudo-elements.
blockquote {
margin: 2em 6em;
font-size: 24px;
line-height: 1.5;
font-style: italic;
position: relative;
}
blockquote:before {
content: "“";
position: absolute;
left: -.75em;
top: 0;
font-size: 2.66em;
line-height: 1;
}
blockquote .author {
font-size: .75em;
line-height: 1.77;
}
Styling
Elevated caps
Explore CSS selectors to style
specific parts of the text.
.post p:first-of-type:first-letter {
font-size: 4.5em;
}
Styling
OpenType
OpenType fonts provide
features to control and tweak
the styles of your text.
.my-class {
font-variant-caps: small-caps;
-moz-font-feature-settings: "smcp";
-ms-font-feature-settings: "smcp";
-webkit-font-feature-settings: "smcp";
font-feature-settings: "smcp";
}
33+ 4+ 10+
Composition
Composition
Grids and column sizes
The text should have
an ideal line length.
A line should have between
60 and 70 characters.
.post {
width: 744px;
margin: 0 auto;
}
The column size should
respond to font size changes.
The use of em-based column
width might solve the problem.
.post {
width: 31em;
margin: 0 auto;
}
Rendering
Rendering
Anti-aliasing and hinting
Font shapes are vectors
that are rasterised to be
displayed on pixels.
Hinting is a manual work
of tweaking sub-pixels to
maintain a font’s identity
and legibility on screen.
Anti-aliasing is an algorithm
used to smooth edges.
Each OS and browsers have a
different anti-aliasing and
hinting setting.
OS + Browser Hinting and AA
Win XP — IE6–8 GDI Grayscale
Win XP — IE6–8 ClearType GCI ClearType
IE9+ DirectWrite
Win XP Chrome GDI ClearType
Win XP Firefox GDI ClearType
Win 7+ Chrome 37+ DirectWrite
Win 7+ Firefox Depends?
OS X CoreText, ignores hinting
* Based on a lot of Google searches, might not be accurate
Test. On. Every. Browser.
Choosing
Choosing
Sources
Choose a reliable source
for your font.
The font must have a
proper unicode table,
kerning, hinting etc.
Also check for language
support, webfont license,
OpenType features.
Fonts are expensive
for a reason.
Choosing
Personalities
Each typeface has a story
and a personality, choose
one that match yours.
The quick brown fox
jumps over the lazy dog.
Bembo — based in engravings from 1495, renaissance style,
readable in small font sizes.
The quick brown fox
jumps over the lazy dog.
Helvetica — Symbol of the Modern Design, is readable,
international and neutral.
The quick brown fox
jumps over the lazy dog.
Museo — The modern, geometric shapes and the rounded, slab
serifs give a strong personality to this type.
Serifs have a refined look,
need less line height values,
and help maintaining a
cohesive text.
Sans serifs have a modern
look, and increased
legibility on screens.
Start simple, with a
readable body typeface.
Then format titles and
subtitles using different
weights and styles.
Choose a second typeface
for titles if needed. Avoid
going further than that.
Choosing
Performance
Each font size is extra data
that must be downloaded.
Measure the impact of
each added typeface.
You’ll have to choose between
speed and non-FOUC.
Avoid loading custom typefaces
on mobile devices.
I Typography
We’ve only scratched
the surface.
We are the craftspeople
of the web.
We should keep our
roots in place.
Further reading:
The Elements of Typographic Style
Robert Bringhurst
EN: http://www.amazon.com/Elements-Typographic-Style-Robert-Bringhurst/dp/0881791326
PT-BR: http://editora.cosacnaify.com.br/ObraSinopse/11584/Elementos-do-estilo-tipogr%C3%A1fico---vers%C3%A3o-30.aspx
Thinking with Type
Ellen Lupton
EN: http://www.amazon.com/Thinking-Type-2nd-revised-expanded/dp/1568989695
PT-BR: http://editora.cosacnaify.com.br/ObraSinopse/1875/Pensar-com-tipos---2%C2%BA-edi%C3%A7%C3%A3o-%28Previs%C3%A3o-de-envio-a-
partir-de-200415%29.aspx
Type on Screen
Ellen Lupton
EN: http://www.amazon.com/Type-Screen-Critical-Designers-Developers/dp/161689170X
On Web Typography
Jason Santa Maria
EN: http://abookapart.com/products/on-web-typography
Type and Typography
Baines & Haslam
EN: http://www.amazon.co.uk/Type-Typography-Portfolio-Phil-Baines/dp/1856694372
Thanks!
twitter.com/shiota
github.com/eshiota
slideshare.net/eshiota
contato@eshiota.com

More Related Content

Viewers also liked

Web Audio Band - Playing with a band in your browser
Web Audio Band - Playing with a band in your browserWeb Audio Band - Playing with a band in your browser
Web Audio Band - Playing with a band in your browserEduardo Shiota Yasuda
 
Internationalisation: 2200+ different ways to view a website
Internationalisation: 2200+ different ways to view a websiteInternationalisation: 2200+ different ways to view a website
Internationalisation: 2200+ different ways to view a websiteEduardo Shiota Yasuda
 
Typography on the Web
Typography on the WebTypography on the Web
Typography on the WebSara Cannon
 
Flexbox and Grid Layout: How you will structure layouts tomorrow.
Flexbox and Grid Layout: How you will structure layouts tomorrow.Flexbox and Grid Layout: How you will structure layouts tomorrow.
Flexbox and Grid Layout: How you will structure layouts tomorrow.Diego Eis
 
Criando uma arquitetura de front-end do zero
Criando uma arquitetura de front-end do zeroCriando uma arquitetura de front-end do zero
Criando uma arquitetura de front-end do zeroEduardo Shiota Yasuda
 
Typography Fundamentals
Typography FundamentalsTypography Fundamentals
Typography FundamentalsSteve Hickey
 
Basics of Typography
Basics of TypographyBasics of Typography
Basics of TypographyAnutosh Deb
 
Typography Essentials: Part 1
Typography Essentials: Part 1Typography Essentials: Part 1
Typography Essentials: Part 1Jennifer Janviere
 
Typography: The Backbone of Your Website
Typography: The Backbone of Your WebsiteTypography: The Backbone of Your Website
Typography: The Backbone of Your WebsiteAlison Chandler
 

Viewers also liked (15)

Front-end Culture @ Booking.com
Front-end Culture @ Booking.comFront-end Culture @ Booking.com
Front-end Culture @ Booking.com
 
Web Audio Band - Playing with a band in your browser
Web Audio Band - Playing with a band in your browserWeb Audio Band - Playing with a band in your browser
Web Audio Band - Playing with a band in your browser
 
The BGs - Background CSS
The BGs - Background CSSThe BGs - Background CSS
The BGs - Background CSS
 
Internationalisation: 2200+ different ways to view a website
Internationalisation: 2200+ different ways to view a websiteInternationalisation: 2200+ different ways to view a website
Internationalisation: 2200+ different ways to view a website
 
Typography on the Web
Typography on the WebTypography on the Web
Typography on the Web
 
Flexbox and Grid Layout: How you will structure layouts tomorrow.
Flexbox and Grid Layout: How you will structure layouts tomorrow.Flexbox and Grid Layout: How you will structure layouts tomorrow.
Flexbox and Grid Layout: How you will structure layouts tomorrow.
 
Better Typography
Better TypographyBetter Typography
Better Typography
 
Criando uma arquitetura de front-end do zero
Criando uma arquitetura de front-end do zeroCriando uma arquitetura de front-end do zero
Criando uma arquitetura de front-end do zero
 
Typography Fundamentals
Typography FundamentalsTypography Fundamentals
Typography Fundamentals
 
Basics of Typography
Basics of TypographyBasics of Typography
Basics of Typography
 
It's all about typography
It's all about typographyIt's all about typography
It's all about typography
 
Typography ppt
Typography pptTypography ppt
Typography ppt
 
5 Reasons Typography is Powerful
5 Reasons Typography is Powerful5 Reasons Typography is Powerful
5 Reasons Typography is Powerful
 
Typography Essentials: Part 1
Typography Essentials: Part 1Typography Essentials: Part 1
Typography Essentials: Part 1
 
Typography: The Backbone of Your Website
Typography: The Backbone of Your WebsiteTypography: The Backbone of Your Website
Typography: The Backbone of Your Website
 

Similar to Dominating the Web Typography

Responsive Web Design & Typography
Responsive Web Design & TypographyResponsive Web Design & Typography
Responsive Web Design & TypographyDanny Calders
 
Essay Eagle Bird. Essay on eagle // 10 line on eagle // essay writing on eagl...
Essay Eagle Bird. Essay on eagle // 10 line on eagle // essay writing on eagl...Essay Eagle Bird. Essay on eagle // 10 line on eagle // essay writing on eagl...
Essay Eagle Bird. Essay on eagle // 10 line on eagle // essay writing on eagl...Ladonna Mayer
 
Fun Astronaut Wall Posters
Fun Astronaut Wall PostersFun Astronaut Wall Posters
Fun Astronaut Wall PostersSave Time Gigs
 
Life of P FITC & CreateUpstate
Life of P FITC & CreateUpstateLife of P FITC & CreateUpstate
Life of P FITC & CreateUpstateJason Pamental
 
The Life of <p>
The Life of <p>The Life of <p>
The Life of <p>FITC
 
Web Typography Tips
Web Typography TipsWeb Typography Tips
Web Typography TipsSara Cannon
 
Interactive Visualization With Bokeh (SF Python Meetup)
Interactive Visualization With Bokeh (SF Python Meetup)Interactive Visualization With Bokeh (SF Python Meetup)
Interactive Visualization With Bokeh (SF Python Meetup)Peter Wang
 
Blending MongoDB and RDBMS for ecommerce
Blending MongoDB and RDBMS for ecommerceBlending MongoDB and RDBMS for ecommerce
Blending MongoDB and RDBMS for ecommerceSteven Francia
 
Typography for the Web - 5 things to think about
Typography for the Web - 5 things to think aboutTypography for the Web - 5 things to think about
Typography for the Web - 5 things to think aboutChad Carstensen
 
High Performance Applications with MongoDB
High Performance Applications with MongoDBHigh Performance Applications with MongoDB
High Performance Applications with MongoDBMongoDB
 
The Future Of Responsive Design Standards
The Future Of Responsive Design StandardsThe Future Of Responsive Design Standards
The Future Of Responsive Design StandardsDen Odell
 
The Future Of Responsive Design Standards (Den Odell)
The Future Of Responsive Design Standards (Den Odell)The Future Of Responsive Design Standards (Den Odell)
The Future Of Responsive Design Standards (Den Odell)Future Insights
 
Augmenting RDBMS with MongoDB for ecommerce
Augmenting RDBMS with MongoDB for ecommerceAugmenting RDBMS with MongoDB for ecommerce
Augmenting RDBMS with MongoDB for ecommerceSteven Francia
 
Design Basics for Non-Designers
Design Basics for Non-DesignersDesign Basics for Non-Designers
Design Basics for Non-DesignersMel Choyce
 
Tecnicas avanzadas con CSS3
Tecnicas avanzadas con CSS3Tecnicas avanzadas con CSS3
Tecnicas avanzadas con CSS3Marta Armada
 
Citizen Journalism Track
Citizen Journalism TrackCitizen Journalism Track
Citizen Journalism TrackMite Kuzevski
 

Similar to Dominating the Web Typography (20)

Responsive Web Design & Typography
Responsive Web Design & TypographyResponsive Web Design & Typography
Responsive Web Design & Typography
 
Essay Eagle Bird. Essay on eagle // 10 line on eagle // essay writing on eagl...
Essay Eagle Bird. Essay on eagle // 10 line on eagle // essay writing on eagl...Essay Eagle Bird. Essay on eagle // 10 line on eagle // essay writing on eagl...
Essay Eagle Bird. Essay on eagle // 10 line on eagle // essay writing on eagl...
 
Fun Astronaut Wall Posters
Fun Astronaut Wall PostersFun Astronaut Wall Posters
Fun Astronaut Wall Posters
 
TypeScript Go(es) Embedded
TypeScript Go(es) EmbeddedTypeScript Go(es) Embedded
TypeScript Go(es) Embedded
 
Develop in a Better Way!
Develop in a Better Way!Develop in a Better Way!
Develop in a Better Way!
 
Life of P FITC & CreateUpstate
Life of P FITC & CreateUpstateLife of P FITC & CreateUpstate
Life of P FITC & CreateUpstate
 
The Life of <p>
The Life of <p>The Life of <p>
The Life of <p>
 
Web Typography Tips
Web Typography TipsWeb Typography Tips
Web Typography Tips
 
Old Dog, New Tricks
Old Dog, New TricksOld Dog, New Tricks
Old Dog, New Tricks
 
(Web ) Typography
(Web ) Typography(Web ) Typography
(Web ) Typography
 
Interactive Visualization With Bokeh (SF Python Meetup)
Interactive Visualization With Bokeh (SF Python Meetup)Interactive Visualization With Bokeh (SF Python Meetup)
Interactive Visualization With Bokeh (SF Python Meetup)
 
Blending MongoDB and RDBMS for ecommerce
Blending MongoDB and RDBMS for ecommerceBlending MongoDB and RDBMS for ecommerce
Blending MongoDB and RDBMS for ecommerce
 
Typography for the Web - 5 things to think about
Typography for the Web - 5 things to think aboutTypography for the Web - 5 things to think about
Typography for the Web - 5 things to think about
 
High Performance Applications with MongoDB
High Performance Applications with MongoDBHigh Performance Applications with MongoDB
High Performance Applications with MongoDB
 
The Future Of Responsive Design Standards
The Future Of Responsive Design StandardsThe Future Of Responsive Design Standards
The Future Of Responsive Design Standards
 
The Future Of Responsive Design Standards (Den Odell)
The Future Of Responsive Design Standards (Den Odell)The Future Of Responsive Design Standards (Den Odell)
The Future Of Responsive Design Standards (Den Odell)
 
Augmenting RDBMS with MongoDB for ecommerce
Augmenting RDBMS with MongoDB for ecommerceAugmenting RDBMS with MongoDB for ecommerce
Augmenting RDBMS with MongoDB for ecommerce
 
Design Basics for Non-Designers
Design Basics for Non-DesignersDesign Basics for Non-Designers
Design Basics for Non-Designers
 
Tecnicas avanzadas con CSS3
Tecnicas avanzadas con CSS3Tecnicas avanzadas con CSS3
Tecnicas avanzadas con CSS3
 
Citizen Journalism Track
Citizen Journalism TrackCitizen Journalism Track
Citizen Journalism Track
 

More from Eduardo Shiota Yasuda

The anatomy of an A/B Test - JSConf Colombia Workshop
The anatomy of an A/B Test - JSConf Colombia WorkshopThe anatomy of an A/B Test - JSConf Colombia Workshop
The anatomy of an A/B Test - JSConf Colombia WorkshopEduardo Shiota Yasuda
 
RetroJS - Escrevendo músicas da era 8-bits com JavaScript e Web Audio API
RetroJS - Escrevendo músicas da era 8-bits com JavaScript e Web Audio APIRetroJS - Escrevendo músicas da era 8-bits com JavaScript e Web Audio API
RetroJS - Escrevendo músicas da era 8-bits com JavaScript e Web Audio APIEduardo Shiota Yasuda
 
Baby.com.br: Analisando, adaptando e melhorando a arquitetura da informação e...
Baby.com.br: Analisando, adaptando e melhorando a arquitetura da informação e...Baby.com.br: Analisando, adaptando e melhorando a arquitetura da informação e...
Baby.com.br: Analisando, adaptando e melhorando a arquitetura da informação e...Eduardo Shiota Yasuda
 
Desafios do Desenvolvimento de Front-end em um e-commerce
Desafios do Desenvolvimento de Front-end em um e-commerceDesafios do Desenvolvimento de Front-end em um e-commerce
Desafios do Desenvolvimento de Front-end em um e-commerceEduardo Shiota Yasuda
 
Arquitetura de Front-end em Aplicações de Larga Escala
Arquitetura de Front-end em Aplicações de Larga EscalaArquitetura de Front-end em Aplicações de Larga Escala
Arquitetura de Front-end em Aplicações de Larga EscalaEduardo Shiota Yasuda
 
Responsive Web Design e a Ubiquidade da Web
Responsive Web Design e a Ubiquidade da WebResponsive Web Design e a Ubiquidade da Web
Responsive Web Design e a Ubiquidade da WebEduardo Shiota Yasuda
 
Sushi e Interfaces - PechaKucha São Paulo Vol. 8 + Inspire Japan
Sushi e Interfaces - PechaKucha São Paulo Vol. 8 + Inspire JapanSushi e Interfaces - PechaKucha São Paulo Vol. 8 + Inspire Japan
Sushi e Interfaces - PechaKucha São Paulo Vol. 8 + Inspire JapanEduardo Shiota Yasuda
 
O Design e a Interface no mundo da Programação
O Design e a Interface no mundo da ProgramaçãoO Design e a Interface no mundo da Programação
O Design e a Interface no mundo da ProgramaçãoEduardo Shiota Yasuda
 

More from Eduardo Shiota Yasuda (10)

The anatomy of an A/B Test - JSConf Colombia Workshop
The anatomy of an A/B Test - JSConf Colombia WorkshopThe anatomy of an A/B Test - JSConf Colombia Workshop
The anatomy of an A/B Test - JSConf Colombia Workshop
 
RetroJS - Escrevendo músicas da era 8-bits com JavaScript e Web Audio API
RetroJS - Escrevendo músicas da era 8-bits com JavaScript e Web Audio APIRetroJS - Escrevendo músicas da era 8-bits com JavaScript e Web Audio API
RetroJS - Escrevendo músicas da era 8-bits com JavaScript e Web Audio API
 
Modular and Event-Driven JavaScript
Modular and Event-Driven JavaScriptModular and Event-Driven JavaScript
Modular and Event-Driven JavaScript
 
Baby.com.br: Analisando, adaptando e melhorando a arquitetura da informação e...
Baby.com.br: Analisando, adaptando e melhorando a arquitetura da informação e...Baby.com.br: Analisando, adaptando e melhorando a arquitetura da informação e...
Baby.com.br: Analisando, adaptando e melhorando a arquitetura da informação e...
 
Desafios do Desenvolvimento de Front-end em um e-commerce
Desafios do Desenvolvimento de Front-end em um e-commerceDesafios do Desenvolvimento de Front-end em um e-commerce
Desafios do Desenvolvimento de Front-end em um e-commerce
 
Arquitetura de Front-end em Aplicações de Larga Escala
Arquitetura de Front-end em Aplicações de Larga EscalaArquitetura de Front-end em Aplicações de Larga Escala
Arquitetura de Front-end em Aplicações de Larga Escala
 
Responsive Web Design e a Ubiquidade da Web
Responsive Web Design e a Ubiquidade da WebResponsive Web Design e a Ubiquidade da Web
Responsive Web Design e a Ubiquidade da Web
 
User Experience para Developers
User Experience para DevelopersUser Experience para Developers
User Experience para Developers
 
Sushi e Interfaces - PechaKucha São Paulo Vol. 8 + Inspire Japan
Sushi e Interfaces - PechaKucha São Paulo Vol. 8 + Inspire JapanSushi e Interfaces - PechaKucha São Paulo Vol. 8 + Inspire Japan
Sushi e Interfaces - PechaKucha São Paulo Vol. 8 + Inspire Japan
 
O Design e a Interface no mundo da Programação
O Design e a Interface no mundo da ProgramaçãoO Design e a Interface no mundo da Programação
O Design e a Interface no mundo da Programação
 

Recently uploaded

10 must-have Chrome extensions for designers
10 must-have Chrome extensions for designers10 must-have Chrome extensions for designers
10 must-have Chrome extensions for designersPixeldarts
 
NBA power point presentation final copy y
NBA power point presentation final copy yNBA power point presentation final copy y
NBA power point presentation final copy ysrajece
 
CAPITAL GATE CASE STUDY -regional case study.pdf
CAPITAL GATE CASE STUDY -regional case study.pdfCAPITAL GATE CASE STUDY -regional case study.pdf
CAPITAL GATE CASE STUDY -regional case study.pdfAlasAlthaher
 
AI and Design Vol. 2: Navigating the New Frontier - Morgenbooster
AI and Design Vol. 2: Navigating the New Frontier - MorgenboosterAI and Design Vol. 2: Navigating the New Frontier - Morgenbooster
AI and Design Vol. 2: Navigating the New Frontier - Morgenbooster1508 A/S
 
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptx
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptxUnit1_Syllbwbnwnwneneneneneneentation_Sem2.pptx
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptxNitish292041
 
General Simple Guide About AI in Design By: A.L. Samar Hossam ElDin
General Simple Guide About AI in Design By: A.L. Samar Hossam ElDinGeneral Simple Guide About AI in Design By: A.L. Samar Hossam ElDin
General Simple Guide About AI in Design By: A.L. Samar Hossam ElDinSamar Hossam ElDin Ahmed
 
guest bathroom white and bluesssssssssss
guest bathroom white and bluesssssssssssguest bathroom white and bluesssssssssss
guest bathroom white and bluesssssssssssNadaMohammed714321
 
Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...
Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...
Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...Associazione Digital Days
 
The spirit of digital place - game worlds and architectural phenomenology
The spirit of digital place - game worlds and architectural phenomenologyThe spirit of digital place - game worlds and architectural phenomenology
The spirit of digital place - game worlds and architectural phenomenologyChristopher Totten
 
guest bathroom white and blue ssssssssss
guest bathroom white and blue ssssssssssguest bathroom white and blue ssssssssss
guest bathroom white and blue ssssssssssNadaMohammed714321
 
Interior Design for Office a cura di RMG Project Studio
Interior Design for Office a cura di RMG Project StudioInterior Design for Office a cura di RMG Project Studio
Interior Design for Office a cura di RMG Project StudioRMG Project Studio
 
怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道
怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道
怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道yrolcks
 
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...Rishabh Aryan
 
FW25-26 Knit Cut & Sew Trend Book Peclers Paris
FW25-26 Knit Cut & Sew Trend Book Peclers ParisFW25-26 Knit Cut & Sew Trend Book Peclers Paris
FW25-26 Knit Cut & Sew Trend Book Peclers ParisPeclers Paris
 
world health day 2024.pptxgbbvggvbhjjjbbbb
world health day 2024.pptxgbbvggvbhjjjbbbbworld health day 2024.pptxgbbvggvbhjjjbbbb
world health day 2024.pptxgbbvggvbhjjjbbbbpreetirao780
 
Map of St. Louis Parks
Map of St. Louis Parks                              Map of St. Louis Parks
Map of St. Louis Parks CharlottePulte
 
Piece by Piece Magazine
Piece by Piece Magazine                      Piece by Piece Magazine
Piece by Piece Magazine CharlottePulte
 
10 Best WordPress Plugins to make the website effective in 2024
10 Best WordPress Plugins to make the website effective in 202410 Best WordPress Plugins to make the website effective in 2024
10 Best WordPress Plugins to make the website effective in 2024digital learning point
 
Sharif's 9-BOX Monitoring Model for Adaptive Programme Management
Sharif's 9-BOX Monitoring Model for Adaptive Programme ManagementSharif's 9-BOX Monitoring Model for Adaptive Programme Management
Sharif's 9-BOX Monitoring Model for Adaptive Programme ManagementMd. Shariful Hoque
 
Making and Unmaking of Chandigarh - A City of Two Plans2-4-24.ppt
Making and Unmaking of Chandigarh - A City of Two Plans2-4-24.pptMaking and Unmaking of Chandigarh - A City of Two Plans2-4-24.ppt
Making and Unmaking of Chandigarh - A City of Two Plans2-4-24.pptJIT KUMAR GUPTA
 

Recently uploaded (20)

10 must-have Chrome extensions for designers
10 must-have Chrome extensions for designers10 must-have Chrome extensions for designers
10 must-have Chrome extensions for designers
 
NBA power point presentation final copy y
NBA power point presentation final copy yNBA power point presentation final copy y
NBA power point presentation final copy y
 
CAPITAL GATE CASE STUDY -regional case study.pdf
CAPITAL GATE CASE STUDY -regional case study.pdfCAPITAL GATE CASE STUDY -regional case study.pdf
CAPITAL GATE CASE STUDY -regional case study.pdf
 
AI and Design Vol. 2: Navigating the New Frontier - Morgenbooster
AI and Design Vol. 2: Navigating the New Frontier - MorgenboosterAI and Design Vol. 2: Navigating the New Frontier - Morgenbooster
AI and Design Vol. 2: Navigating the New Frontier - Morgenbooster
 
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptx
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptxUnit1_Syllbwbnwnwneneneneneneentation_Sem2.pptx
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptx
 
General Simple Guide About AI in Design By: A.L. Samar Hossam ElDin
General Simple Guide About AI in Design By: A.L. Samar Hossam ElDinGeneral Simple Guide About AI in Design By: A.L. Samar Hossam ElDin
General Simple Guide About AI in Design By: A.L. Samar Hossam ElDin
 
guest bathroom white and bluesssssssssss
guest bathroom white and bluesssssssssssguest bathroom white and bluesssssssssss
guest bathroom white and bluesssssssssss
 
Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...
Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...
Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...
 
The spirit of digital place - game worlds and architectural phenomenology
The spirit of digital place - game worlds and architectural phenomenologyThe spirit of digital place - game worlds and architectural phenomenology
The spirit of digital place - game worlds and architectural phenomenology
 
guest bathroom white and blue ssssssssss
guest bathroom white and blue ssssssssssguest bathroom white and blue ssssssssss
guest bathroom white and blue ssssssssss
 
Interior Design for Office a cura di RMG Project Studio
Interior Design for Office a cura di RMG Project StudioInterior Design for Office a cura di RMG Project Studio
Interior Design for Office a cura di RMG Project Studio
 
怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道
怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道
怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道
 
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
 
FW25-26 Knit Cut & Sew Trend Book Peclers Paris
FW25-26 Knit Cut & Sew Trend Book Peclers ParisFW25-26 Knit Cut & Sew Trend Book Peclers Paris
FW25-26 Knit Cut & Sew Trend Book Peclers Paris
 
world health day 2024.pptxgbbvggvbhjjjbbbb
world health day 2024.pptxgbbvggvbhjjjbbbbworld health day 2024.pptxgbbvggvbhjjjbbbb
world health day 2024.pptxgbbvggvbhjjjbbbb
 
Map of St. Louis Parks
Map of St. Louis Parks                              Map of St. Louis Parks
Map of St. Louis Parks
 
Piece by Piece Magazine
Piece by Piece Magazine                      Piece by Piece Magazine
Piece by Piece Magazine
 
10 Best WordPress Plugins to make the website effective in 2024
10 Best WordPress Plugins to make the website effective in 202410 Best WordPress Plugins to make the website effective in 2024
10 Best WordPress Plugins to make the website effective in 2024
 
Sharif's 9-BOX Monitoring Model for Adaptive Programme Management
Sharif's 9-BOX Monitoring Model for Adaptive Programme ManagementSharif's 9-BOX Monitoring Model for Adaptive Programme Management
Sharif's 9-BOX Monitoring Model for Adaptive Programme Management
 
Making and Unmaking of Chandigarh - A City of Two Plans2-4-24.ppt
Making and Unmaking of Chandigarh - A City of Two Plans2-4-24.pptMaking and Unmaking of Chandigarh - A City of Two Plans2-4-24.ppt
Making and Unmaking of Chandigarh - A City of Two Plans2-4-24.ppt
 

Dominating the Web Typography

  • 1. Dominating the Web Typography Eduardo Shiota Yasuda — @shiota Conferência CSS Brasil
  • 3.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13. We gotta remember the roots of what we do.
  • 14. 15.000 BC – 12.500 BC Altamira & Lascaux
  • 15. 3.000 BC – 1.500 BC Pictographs
  • 18. 146 BC Roman alphabet, “Capitalis quadrata”
  • 20. 4th – 5th centuries Uncials and semi-uncials
  • 22. 12th century Apex of goth art and Middle Ages
  • 23. 15th – 16th centuries Renaissance, Gutenberg press, “Cursiva humanista”, type foundries
  • 24. 19th century Industrial Revolution, linotype, Art Nouveau, display types
  • 25. 20th century Modern Design, Avant-garde, Bauhaus, sans-serif types, digital typography
  • 29. Most of the classification systems agree with these type categories:
  • 31. Museo The quick brown fox jumps over the lazy dog. Meta Serif The quick brown fox jumps over the lazy dog. Times New Roman The quick brown fox jumps over the lazy dog.
  • 33. Futura The quick brown fox jumps over the lazy dog. Museo Sans The quick brown fox jumps over the lazy dog. Helvetica The quick brown fox jumps over the lazy dog.
  • 35. Fette Fraktur The quick brown fox jumps over the lazy dog. Goudy Text The quick brown fox jumps over the lazy dog. Wilhelm Klingspor Gotisch The quick brown fox jumps over the lazy dog.
  • 37. Lucida Calligraphy The quick brown fox jumps over the lazy dog. Mistral The quick brown fox jumps over the lazy dog. Apple Chancery The quick brown fox jumps over the lazy dog.
  • 39. Comic Sans The quick brown fox jumps over the lazy dog. Sketch Rockwell The quick brown fox jumps over the lazy dog. GodOfWar The quick brown fox jumps over the lazy dog.
  • 41. Bodoni Ornaments The quick brown fox jumps over the lazy dog. Travel Icons The quick brown fox jumps over the lazy dog. Wingdings The quick brown fox jumps over the lazy dog.
  • 42. On the CSS, you may choose generic families as fallbacks.
  • 43. .my-serif-text { font-family: "Meta Serif", Times, serif; } .my-sans-serif-text { font-family: "Proxima Nova", Arial, sans-serif; } .my-monospace-text { font-family: Monaco, "Courier New", monospace; } .my-cursive-text { font-family: "Zapf Chancery", "Brush Script", cursive; } .my-fantasy-text { font-family: "Sketch Rockwell", Papyrus, fantasy; }
  • 45.
  • 52. To deal with physical units, you can’t rely on a screen.
  • 53. pt picas millimetres inches 12 1 4.22 1/6
  • 54. A4 (29.7cm × 21.0cm)
  • 56. To deal with screens, you must understand what are physical and reference pixels.
  • 57. A physical pixel is a physical point on the display.
  • 58.
  • 59. A reference pixel depends on the device, software and user settings.
  • 60.
  • 61. A 16px font on a smartphone screen won’t have as many millimetres as on a desktop screen.
  • 62.
  • 63. Change, test, use media queries, test again.
  • 65. “em” is a relative unit used since the movable types.
  • 66. It represents a type’s full body size.
  • 67. 1 em
  • 69. It’s always relative to its context’s font size.
  • 70. .wrapper { font-size: 16px; } .parent { font-size: 1.5em; } .child { font-size: .5em; }
  • 71. Root em unit (rem)
  • 72. “rem” is like “em” but always relative to the root (html).
  • 73. html { font-size: 16px; } .wrapper { font-size: 12px; } .parent { font-size: 1.5rem; } .child { font-size: 0.5rem; }
  • 74. For most of browsers and cases, the default root font size is 16px.
  • 75. html { font-size: 16px; } .wrapper { font-size: 12px; } .parent { font-size: 1.5rem; } .child { font-size: 0.5rem; }
  • 76. html { font-size: 100%; } .wrapper { font-size: 12px; } .parent { font-size: 1.5rem; } .child { font-size: 0.5rem; }
  • 78. The way you space your characters and text dictates how a person will read it.
  • 80. Line height is the distance between each line of types.
  • 81. The quick fox jumps over the dog 0 pixels Meta Serif 102px/102px
  • 82. The quick fox jumps over the dog Meta Serif 102px/144px 42 pixels
  • 83. A low line height makes the text too difficult to read.
  • 84. Helvetica 32px/32px “The Guide says that the best drink in existence is the Pan Galactic Gargle Blaster. It says that the effect of a Pan Galactic Gargle Blaster is like having your brains smashed out by a slice of lemon wrapped round a large gold brick.”
  • 85. A large line height makes the paragraph loose cohesion.
  • 86. Helvetica 32px/96px “The Guide says that the best drink in existence is the Pan Galactic Gargle Blaster. It says that the effect of a Pan Galactic Gargle Blaster is like having your brains smashed out by a slice of lemon wrapped round a large gold brick.”
  • 87. Find a comfortable proportion through trial-and-error.
  • 88. Helvetica 32px/48px “The Guide says that the best drink in existence is the Pan Galactic Gargle Blaster. It says that the effect of a Pan Galactic Gargle Blaster is like having your brains smashed out by a slice of lemon wrapped round a large gold brick.”
  • 89. Each typeface might require a different line height setting.
  • 90. Bembo 32px/48px “The Guide says that the best drink in existence is the Pan Galactic Gargle Blaster. It says that the effect of a Pan Galactic Gargle Blaster is like having your brains smashed out by a slice of lemon wrapped round a large gold brick.”
  • 91. Caslon 32px/48px “The Guide says that the best drink in existence is the Pan Galactic Gargle Blaster. It says that the effect of a Pan Galactic Gargle Blaster is like having your brains smashed out by a slice of lemon wrapped round a large gold brick.”
  • 93. Use a consistent vertical proportion by following a baseline.
  • 94. 9 reasons why cats will conquer the world. The number 5 will surprise you! “More importantly, a towel has immense psychological value. For some reason, if a strag (strag: nonhitchhiker) discovers that a hitchhiker has his towel with him, he will automatically assume that he is also in possession of a toothbrush, washcloth, soap, tin of biscuits, flask, compass, map, ball of string, gnat spray, wet-weather gear, space suit etc., etc. Furthermore, the strag will then happily lend the hitchhiker any of these or a dozen other items that the hitchhiker might have accidentally "lost.". What the strag will think is that any man that can hitch the length and breadth of the Galaxy, rough it, slum it, struggle against terrible odds, win through and still know where his towel is, is clearly a man to be reckoned with.”
  • 95. 9 reasons why cats will conquer the world. The number 5 will surprise you! “More importantly, a towel has immense psychological value. For some reason, if a strag (strag: nonhitchhiker) discovers that a hitchhiker has his towel with him, he will automatically assume that he is also in possession of a toothbrush, washcloth, soap, tin of biscuits, flask, compass, map, ball of string, gnat spray, wet-weather gear, space suit etc., etc. Furthermore, the strag will then happily lend the hitchhiker any of these or a dozen other items that the hitchhiker might have accidentally "lost.". What the strag will think is that any man that can hitch the length and breadth of the Galaxy, rough it, slum it, struggle against terrible odds, win through and still know where his towel is, is clearly a man to be reckoned with.”
  • 96. Choose a line height for a baseline, and make all vertical values derive from it.
  • 97. /* baseline = 24px */ body { font-size: 16px; line-height: 24px; /* baseline */ } .article-title { font-size: 32px; line-height: 48px; /* 2 × baseline */ } .article-excerpt { font-size: 18px; line-height: 24px; /* baseline */ } img { max-height: 312px; /* 13 × baseline */ } p { margin-bottom: 12px; /* 0.5 × baseline */ }
  • 98. If you pre-process your CSS, you ensure a consistent typography using variables.
  • 99. // _variables.scss $base-font-size: 16px; $baseline: 24px; // On your project: body { font-size: $base-font-size; line-height: ($baseline/$base-font-size); // 1.5 } .article-title { font-size: 2*$base-font-size; line-height: 2*$baseline; } .article-excerpt { font-size: 18px; line-height: $baseline; } img { max-height: 13*$baseline; } p { margin-bottom: 0.5*$baseline; }
  • 100. Be aware that each browser has its own baseline.
  • 102. Letter spacing is the whitespace between each single type.
  • 106. The use of letter-spacing is recommended for titles only.
  • 110. Kerning is a fine-tuning between specific pairs of characters.
  • 111.
  • 112. Task
  • 113. The browser default is automatically enabling/disabling it.
  • 114.
  • 117. You can manipulate the text’s indentation, which applies to its first line.
  • 118. More importantly, a towel has immense psychological value. For some reason, if a strag (strag: nonhitchhiker) discovers that a hitchhiker has his towel with him, he will automatically assume that he is also in possession of a toothbrush, washcloth, soap, tin of biscuits, flask, compass, map, ball of string, gnat spray, wet-weather gear, space suit etc., etc. Furthermore, the strag will then happily lend the hitchhiker any of these or a dozen other items that the hitchhiker might have accidentally "lost.". What the strag will think is that any man that can hitch the length and breadth of the Galaxy, rough it, slum it, struggle against terrible odds, win through and still know where his towel is, is clearly a man to be reckoned with.
  • 119. More importantly, a towel has immense psychological value. For some reason, if a strag (strag: nonhitchhiker) discovers that a hitchhiker has his towel with him, he will automatically assume that he is also in possession of a toothbrush, washcloth, soap, tin of biscuits, flask, compass, map, ball of string, gnat spray, wet-weather gear, space suit etc., etc. Furthermore, the strag will then happily lend the hitchhiker any of these or a dozen other items that the hitchhiker might have accidentally "lost.". What the strag will think is that any man that can hitch the length and breadth of the Galaxy, rough it, slum it, struggle against terrible odds, win through and still know where his towel is, is clearly a man to be reckoned with. .post p { text-indent: 2em; }
  • 120. For long texts, you can skip the indentation on the first paragraph.
  • 121. More importantly, a towel has immense psychological value. For some reason, if a strag (strag: nonhitchhiker) discovers that a hitchhiker has his towel with him, he will automatically assume that he is also in possession of a toothbrush, washcloth, soap, tin of biscuits, flask, compass, map, ball of string, gnat spray, wet-weather gear, space suit etc., etc. Furthermore, the strag will then happily lend the hitchhiker any of these or a dozen other items that the hitchhiker might have accidentally "lost.". What the strag will think is that any man that can hitch the length and breadth of the Galaxy, rough it, slum it, struggle against terrible odds, win through and still know where his towel is, is clearly a man to be reckoned with. .post p { text-indent: 2em; } .post p:first-of-type { text-indent: 0; }
  • 122. More importantly, a towel has immense psychological value. For some reason, if a strag (strag: nonhitchhiker) discovers that a hitchhiker has his towel with him, he will automatically assume that he is also in possession of a toothbrush, washcloth, soap, tin of biscuits, flask, compass, map, ball of string, gnat spray, wet-weather gear, space suit etc., etc. Furthermore, the strag will then happily lend the hitchhiker any of these or a dozen other items that the hitchhiker might have accidentally "lost.". What the strag will think is that any man that can hitch the length and breadth of the Galaxy, rough it, slum it, struggle against terrible odds, win through and still know where his towel is, is clearly a man to be reckoned with. .post p + p { text-indent: 2em; }
  • 124. You can use CSS rules to properly style your content, like a well-authored book.
  • 126. Keep a clear hierarchy by using different font sizes, type faces and variants.
  • 127.
  • 129. A quote block can be highlighted with margins and pseudo-elements.
  • 130.
  • 131. blockquote { margin: 2em 6em; font-size: 24px; line-height: 1.5; font-style: italic; position: relative; } blockquote:before { content: "“"; position: absolute; left: -.75em; top: 0; font-size: 2.66em; line-height: 1; } blockquote .author { font-size: .75em; line-height: 1.77; }
  • 133. Explore CSS selectors to style specific parts of the text.
  • 136. OpenType fonts provide features to control and tweak the styles of your text.
  • 137.
  • 138. .my-class { font-variant-caps: small-caps; -moz-font-feature-settings: "smcp"; -ms-font-feature-settings: "smcp"; -webkit-font-feature-settings: "smcp"; font-feature-settings: "smcp"; } 33+ 4+ 10+
  • 139.
  • 140.
  • 143. The text should have an ideal line length.
  • 144.
  • 145. A line should have between 60 and 70 characters.
  • 146.
  • 148.
  • 149. The column size should respond to font size changes.
  • 150.
  • 151. The use of em-based column width might solve the problem.
  • 152.
  • 153.
  • 157. Font shapes are vectors that are rasterised to be displayed on pixels.
  • 158. Hinting is a manual work of tweaking sub-pixels to maintain a font’s identity and legibility on screen.
  • 159.
  • 160.
  • 161. Anti-aliasing is an algorithm used to smooth edges.
  • 162. Each OS and browsers have a different anti-aliasing and hinting setting.
  • 163. OS + Browser Hinting and AA Win XP — IE6–8 GDI Grayscale Win XP — IE6–8 ClearType GCI ClearType IE9+ DirectWrite Win XP Chrome GDI ClearType Win XP Firefox GDI ClearType Win 7+ Chrome 37+ DirectWrite Win 7+ Firefox Depends? OS X CoreText, ignores hinting * Based on a lot of Google searches, might not be accurate
  • 164. Test. On. Every. Browser.
  • 165.
  • 168. Choose a reliable source for your font.
  • 169.
  • 170. The font must have a proper unicode table, kerning, hinting etc.
  • 171. Also check for language support, webfont license, OpenType features.
  • 172.
  • 173.
  • 174.
  • 175.
  • 176.
  • 179. Each typeface has a story and a personality, choose one that match yours.
  • 180. The quick brown fox jumps over the lazy dog. Bembo — based in engravings from 1495, renaissance style, readable in small font sizes.
  • 181. The quick brown fox jumps over the lazy dog. Helvetica — Symbol of the Modern Design, is readable, international and neutral.
  • 182. The quick brown fox jumps over the lazy dog. Museo — The modern, geometric shapes and the rounded, slab serifs give a strong personality to this type.
  • 183. Serifs have a refined look, need less line height values, and help maintaining a cohesive text.
  • 184.
  • 185. Sans serifs have a modern look, and increased legibility on screens.
  • 186.
  • 187. Start simple, with a readable body typeface.
  • 188. Then format titles and subtitles using different weights and styles.
  • 189. Choose a second typeface for titles if needed. Avoid going further than that.
  • 190.
  • 192. Each font size is extra data that must be downloaded.
  • 193.
  • 194. Measure the impact of each added typeface.
  • 195.
  • 196. You’ll have to choose between speed and non-FOUC.
  • 197. Avoid loading custom typefaces on mobile devices.
  • 200. We are the craftspeople of the web.
  • 201.
  • 202. We should keep our roots in place.
  • 203.
  • 204.
  • 205. Further reading: The Elements of Typographic Style Robert Bringhurst EN: http://www.amazon.com/Elements-Typographic-Style-Robert-Bringhurst/dp/0881791326 PT-BR: http://editora.cosacnaify.com.br/ObraSinopse/11584/Elementos-do-estilo-tipogr%C3%A1fico---vers%C3%A3o-30.aspx Thinking with Type Ellen Lupton EN: http://www.amazon.com/Thinking-Type-2nd-revised-expanded/dp/1568989695 PT-BR: http://editora.cosacnaify.com.br/ObraSinopse/1875/Pensar-com-tipos---2%C2%BA-edi%C3%A7%C3%A3o-%28Previs%C3%A3o-de-envio-a- partir-de-200415%29.aspx Type on Screen Ellen Lupton EN: http://www.amazon.com/Type-Screen-Critical-Designers-Developers/dp/161689170X On Web Typography Jason Santa Maria EN: http://abookapart.com/products/on-web-typography Type and Typography Baines & Haslam EN: http://www.amazon.co.uk/Type-Typography-Portfolio-Phil-Baines/dp/1856694372