Typography For Web Designers
Typography For Web Designers
For
Web Designers
by Alex Devero
Feel free to take passages from this book and replicate them
online or in print, but link back to blog.alexdevero.com/
everything. If you want to use more than a few paragraphs,
email [email protected]. If you flat-out steal, Ill find out.
Portions of this book have appeared on my blog
(blog.alexdevero.com) over the last few years.
Table of Content
Introduction
Summary
Further Reading
Thanks
Introduction
In this book you will find the all the fundamental information
you will need in your career as a web designer. We will start by
exploring typography in general. Then, we will move to a set of
laws or suggestions you should keep in mind when working
with text and also with design in overall. Some of the
suggestions will be more useful in print design while some in
web design. Still, make sure to read all of them because in
every single one is at least a bit of knowledge that will help
you become better designer. The last chapter will be focused
solely on web design. In this chapter, you will learn about CSS
properties related to typography and how to use them.
I hope this book will give you useful knowledge and help you
do a better work.
Part I
The Fundamentals of
Typography
Typography is one of the most important parts of any design
(maybe the most important). It can bring your work to next
level or take you down.
First lets have a smalltalk about history. Typography first
appeared in ancient times. It was used on coins and seals.
More focus on type began in medieval times with start of print
with individual letter punches. The revolution of type came
with Johannes Gutenberg and his invention of mechanical
printing press. With this technology, using cheap letter
punches in huge amount to print multiple copies of text, first
book was created Gutenberg Bible.
Next revolution came in 20th century with computers. First
personal computer that gave more space and choices to
designers was Apples Macintosh with first design software. As
time went, designers started to create more experimental
typefaces. The price of typefaces was also lowered so they
Typeface or font?
Those two are indeed not same. Typeface is simply set of
typographical characters, numbers and symbols (also type
families). Font is a complete character set within typeface.
Fonts are also specific computer files that contain all
characters of typeface.
The last type of serif typeface is slab serif. Slabs have little or
no contrast between thick and thin lines plus thick, rectangular
serifs and sometimes fixed widths.
Sans-Serif
Sans-Serifs lack serif details on characters. These typefaces are
often more modern in appearance than serifs. They were
created in the late 18th century.
Script
Scripts are based on handwriting and has very fluid
letterforms. They are divided into two basic classifications
formal and casual.
Formal are reminiscent of the handwritten letterforms which
you can find in the 17th and 18th century. They are modern
creations, too, for example Kuenstler Script. Theyre common
for elegant typographical designs and are unsuitable for body
copy.
Casual more closely resemble modern handwriting. Their roots
are back in the mid-twentieth century. Theyre much less
formal, often with stronger strokes and a more brush-like
appearance.
Examples: Mistral and Brush Script.
Display
Display typefaces are, I guess, the broadest category which
also include the most variation. Their are unsuitable for body
copy. The best is to use them for headlines or other short copy
that needs attention. These typefaces can be formal, or
informal and evoke any kind of mood. Theyre more common
in print design, but are used more and more online with the
use of web fonts.
Mood
Mood of a typeface that tell us how individual typeface should
be used. This means that different typefaces have different
moods, sometimes very different. Most used moods are
formal or informal, modern or classic (also traditional) and
light or dramatic. Some typefaces have very significant moods.
Some fonts like Times New Roman will always be a traditional.
This also makes them very useful for some kind of work like, in
case of traditional fonts, correspondence (mostly business). As
an example of modern mood font take Verdana.
Some typefaces are more transcendent then others and their
mood is dependent on the content and typefaces you used
them with. Great example can be Helvetica.
Baseline
The baseline is the invisible line that all the characters stand
on. Rounded letters sometimes sit just a tiny bit under the
baseline, and descenders always drop below this line. A given
typeface will have a consistent baseline.
Meanline
Stem
Bar
Bowl
Ascender
Serifs
Descender
Aperture
Ear
Hairline
Crossbar
Terminal
Terminals are only found on serif characters, and are the end
of any line that doesnt have a serif.
Loop
Spur
Link
Spine
Tail
Finials
Shoulders
Part II
How to Format a
Document
Lets start in outside-in direction or from the big picture to
details if you want. The first set of rules we are going to talk
about will focus on document (print, or web page) and will
deal with typography and style in bigger scale.
Note: Whenever you can, that mean in all cases, avoid using
pure black (#000, hsl(0,0%,0%), rgb(0,0,0)). This is applicable
to design in overall. You might be asking why and here is the
answer. Pure black color is not that natural as you could think.
Take a look around yourself. You are surrounded by thousands
of different shades of colors, most of them are not absolutely
black. When you take a look at examples of UI design, the ones
based on pure black almost never look as good and natural as
the ones based on dark shades.
Part III
How to Format Large
Bodies of Text
The main subject of the part 2 is formatting large bodies of
text. Typography rules that will follow will be incredibly useful,
for example, when dealing with paragraphs of text.
This makes print much easier to handle with just a few preset
rules or guides for typography. Good rule of thumb for body
text in print, when it comes to size, is to set it between 9 and
11 points Thats approximately between 0.125 and 0.153
inches, 0.3175 and 0.388 cm or 12px and 15px if you dont like
to work with points. Staying in this range will allow you to keep
the content readable and legible for your readers.
No matter how comfortable can be working with defined
unchangeable dimensions, this is not the way web works.
When you put some content online it is hard to control on
what devices can users view it and what properties will the
screen have. However, one thing you can control is the font
size of text. Font size have a huge effect on the overall
readability of your content and should be important part of
your typography plan in every project you are working on. So,
how to make sure text is big enough users can read it without
hurting their eyes or using magnifying glass? Good rule of
thumb is to set 16px or 1em as default for body text
(paragraphs).
Lets take a look at Bootstrap 3 and Foundation 5 to see how
they handle this question. Bootstrap 3 uses 14px as a font-size
for body element. 14px can be harder to read so please, dont
use it. Take a look at medium. It uses 18(!) pixels as default size
for body element and I guess youve never complained about
readability. Foundation, on the other hand surprised me (in a
good sense). It doesnt use pixels to set the body font-size, but
using your eyes can be a good way to get the job done. You
know, follow you designers instincts (or 66 rule).
So, if you dont want to lose readers you should split longer
content into series of smaller paragraphs. Good rule to follow
by Neil Patel is to start new paragraph after about five lines. It
is simple and your users will love you.
Part IV
How to Format
Smaller Blocks of Text
In this part you are going to learn about how to deal with
smaller blocks of text. To give you some example These can
be lists, acronyms, words you want to emphasize or highlight
and so on.
Part V
How to Use
Punctuation Properly
No.1: Connect thoughts using em dashes
In typography, three options are available for you in most
situations em dash, en dash and hyphen. Today you are
going to learn about all them, but for now lets pick the em
dash. The em dash is named after the M letter and it
indicates its width is equal to the width of letter M. When
you should use em dash? To simplify it, use it any time when
you want to connect thoughts. You can use them instead of
commas (ems are more empathic).
You can also replace parenthesis with them in less formal and
a bit more intrusive context. Keep in mind that dashes draw
more attention, so when you are working in more subtle
context you might rather use classic parenthesis instead.
Another example of switching with dashes are colons. Again, if
you want to emphasize something in less formal way, em
dashes can be useful.
nouns, adjectives and terms, nothing more. This way you will
avoid most of mistakes.
Part VI
How to Choose
Typefaces
No.1: Limit typefaces to two per project
(document)
Number of typeface you use in your projects should not be
more than two. Thats it. One or two typefaces and you are
good to go. One typeface should be for headings and the
second one for body text. This way you will create contrast
between them while keeping your design consistent. You can
also pick just one typeface and use it for both, headings and
body text, but dont forget to create contrast in another way
(padding, color, etc.).
Part VII
Typography in Web
design
It was said and repeated for many times that web is 90%
typography. If you are a web designer, developer or just
anyone working in web industry, typography covers huge part
of your work. Typography is also one field that is often
overlooked by young designers wanting to start their careers
or businesses. This is no surprise. For majority of people, web
design is about creating mockups in Photoshop and other
graphic software or programming in HTML and CSS
(sometimes with JavaScript or jQuery). Sure, these are
necessary parts of our process. However website would be
empty without text.
Web design is often compared or associated with print design.
Have you ever heard about layout, grid or columns? These
terms were here long before Tim Berners-Lee, father of the
Internet, was born. What is more interesting is never ending
discussion between designers about how much should web
follow the practices and principles of print. If you want to see
Width
First property we need to talk about is width. Width of the line
is one of the most important factors when it comes to
typography. Make the line too wide or too thin and it will be
uncomfortable for user to read it. So, how wide the line should
be in perfect case? There is a good rule of thumb coming from
print design that states it between 60 and 75 cpl (including
spaces). Cpl means characters per line. Thats it. This suits well
both, desktop and tablet devices. To be more precise, Robert
Bringhurst has set the ideal cpl to 66 (66 characters rule).
For mobile, you should go somewhere between 35 and 40 cpl.
By following this principle you will keep the text in digestible
form, not too thin and not too wide.
Since there is no property to control the number of words you
will have to manually modify the width of paragraphs in a
browser and count the characters or you can use some tools
available online like Golden Ratio Typography Calculator for
example. This is great tool for setting ideal typography
properties for font-size, width and cpl you want.
Line-height
Next property to examine is line-height. You can also know this
property from print design as leading. If you dont understand
why, try to play with different values on a piece of text and you
will see the reason on your own eyes. Too big line height will
enlarge the gaps between individual lines of text and, on the
other hand, too small will make them smaller. You can also
overdo it and make the lines overlap each other. Optimal value
for line-height is considered somewhere between 120% and
145%. When you take a look at various stylesheets in use on
the web, they often use values ranging from 1.2 to 1.375. So, if
by remaining in this range you will be good.
It is important to note that line-height is unitless property. This
means that you can either define its value in px, ems,
percentages or completely omit the unit. For example, by
defining line-height as 1.375 it will cause the changing it to
1.375 times bigger than the font-size. In case of font-size set to
16px, line-height will be 22px.
Font-size
The last property to work with is font-size. Again, good and
well tried practice from print design is to use 16px for body
text (paragraphs) as the best value. Another reason for this
value is that it is also default size for most of the browsers. So,
you can either set the font-size property for body element to
Tablet:
h1: 2.5em;
h2: 2em;
h3: 1.5em;
h4: 1.125em;
Mobile:
h1: 2em;
h2: 1.625em;
h3: 1.375em;
h4: 1.125em;
Summary
Readability and legibility are the main goals of every designer
working with type. Whenever the content of the page (text) is
hard to read or display, youve failed. Yes, text on the web is
much harder, if not some times almost impossible, to control.
However, doing your best in order to provide content to the
user in readable and legible form is your responsibility. Use the
information provided in this book to create great experience
and easily digestible content for your users and remember
that web design is not only about code or nice graphic, but
typography as well.
Further Reading:
Dash on Wikipedia:
http://en.wikipedia.org/wiki/Dash
Hyphen on Wikipedia:
http://en.wikipedia.org/wiki/Hyphen
Serif on Wikipedia:
http://en.wikipedia.org/wiki/Serif
Sans-serif on Wikipedia:
http://en.wikipedia.org/wiki/Sans-serif
Thanks
Thanks belongs to my mother, Dagmar, for raising me the way
she did and for having so much patience with me. My sister,
Michaela, for not killing her brother although he deserved it
many times. My father, for showing me example of a good
man to his wife. My grandmother and my grandfather () who
were always here for me in the toughest times and provided
me a place to stay. Thanks also to all the great people reading
my blog, sharing on and chatting on twitter, Linkedin,
Facebook and Google+. Without you this book would never
exist.
To continue what weve got going here, here are some links
where you can find me:
website: http://alexdevero.com
blog: http://blog.alexdevero.com/
Twitter: @alexdevero
Linkedin: https://www.linkedin.com/in/alexdevero
Facebook: https://www.facebook.com/deveroalex/
Google+: https://plus.google.com/+AlexDevero