Sub topic 2
What to Look for When Choosing a Typeface
This chapter assumes you know basic HTML structure, the link element, CSS selectors, and the font-family property. You should also be able to open your browser's developer tools. The previous chapter sorted typefaces into categories: serif, sans-serif, monospace, and display. This chapter covers how to choose among them for a real page.
Choosing a typeface is a set of decisions with checkable answers. A font can look good in a specimen and still fail on your page. It may lack the characters your text needs, offer too few weights, or be hard to read at body size. The criteria below help you test a font before you commit to it.
The Four Criteria
The topic plan groups the decision into four criteria: legibility, tone, language support, and available weights. Each one can be checked on its own.
| Criterion | Question to ask | How to check it |
|---|---|---|
| Legibility | Can people read long text at small sizes? | Set a real paragraph at 16px and read it |
| Tone | Does the personality match the content? | Compare the font against the brand and audience |
| Language support | Does it include every character you need? | Check the font's supported scripts and test real text |
| Weights and styles | Does it offer what the design uses? | List the weights and italics in the design, then compare |
A font that passes only one or two of these is a risk. Run all four checks before you write any embed code.
Legibility
Legibility is how easily a reader can tell one character from another. Readability is how comfortable it is to read a whole block of text. Both depend on the typeface and on how you set it, but some typefaces make good results easier than others.
Look at these features when you test a body-text candidate:
- x-height. This is the height of lowercase letters such as "x" relative to capitals. A larger x-height usually makes small text look bigger and clearer on screens.
- Letter shapes that could be confused. In some sans-serif fonts, a capital "I", a lowercase "l", and the digit "1" look almost identical. This matters for codes, IDs, and passwords. Type
Il1 O0in the font and see whether you can tell them apart. - Spacing. Letters that are too tight blur together at small sizes. Letters that are too loose break words apart.
- Stroke contrast. Some serif fonts have very thin hairlines next to thick strokes. On low-resolution screens, the thin strokes can fade out at small sizes.
- Numerals. Tables and prices need numbers that line up. Some fonts offer tabular figures, which give every digit the same width, so columns align.
Display typefaces are usually poor choices for body text. They are designed to be looked at in large sizes, such as a headline or logo. A decorative script at 16px in a long paragraph is hard to read, even if it looks good at 72px.
Test with Real Content
Never judge a font from its name or from a "The quick brown fox" sample alone. Put your real headline, a real paragraph, and a real table of numbers into a test page. Then view it at the sizes and on the devices your visitors use.
This small page lets you compare candidates in the browser. It uses Inter and a serif fallback that you can swap for any family you are considering.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Font test page</title>
<style>
body {
font-family: system-ui, sans-serif;
max-width: 40rem;
margin: 2rem auto;
padding: 0 1rem;
}
.sample {
font-family: Georgia, "Times New Roman", serif;
font-size: 1rem;
line-height: 1.6;
}
.confusables {
font-family: Georgia, "Times New Roman", serif;
font-size: 2rem;
letter-spacing: 0.05em;
}
</style>
</head>
<body>
<h1>Font test page</h1>
<p class="confusables">Il1 O0 rn m</p>
<p class="sample">
Paste a real paragraph from your site here. Read it at the size your
visitors will see, and check that it is comfortable for more than a
few lines.
</p>
</body>
</html>Change the font-family values on .sample and .confusables to compare candidates. Georgia is a system font on many computers, so this page works before you load any web font. In later chapters you will add Google Fonts and Adobe Fonts to the same page.
Tone
Tone is the personality a typeface gives to text. It is subjective, but it is not random. Readers form quick impressions from letter shapes, and those impressions affect how they judge the content.
The categories from the previous chapter give you a starting point:
- Serif fonts often read as traditional, editorial, or authoritative.
- Sans-serif fonts often read as modern, neutral, or friendly.
- Monospace fonts read as technical, because they are linked to code and terminals.
- Display fonts carry strong personality, from playful to dramatic.
These are tendencies, not rules. A geometric sans-serif with circular letters feels different from a humanist sans-serif with shapes based on handwriting, even though both are sans-serif. Compare candidates inside the same category by looking at details like the shape of the lowercase "a" and "g", the roundness of "o", and the terminals (the ends of strokes).
A practical approach is to write two or three adjectives that describe the project, such as "calm, precise, trustworthy" for a banking tool. Then reject any font that clashes with them. If the content is serious, a very playful display font will undercut it.
Language Support
Language support is the set of characters a font actually contains. Every font file includes a limited set of glyphs (the drawn shapes of characters). If a character is missing, the browser replaces it with a glyph from the next font in your stack. The result is mismatched letters in the middle of a word.
Check language support when your site has any of these:
- Accented Latin letters, such as é, ñ, ü, or ø.
- Other scripts, such as Cyrillic, Greek, Arabic, Hebrew, Devanagari, or Chinese, Japanese, and Korean text.
- Special symbols, such as currency signs, arrows, or mathematical operators.
- User-generated text, where you cannot predict the characters.
Both services describe scripts for each family. Google Fonts lets you filter its catalog by language, and Adobe Fonts offers language filtering on its browse page. Treat the filter as a first pass. Then paste real sample text into your test page and look for fallback glyphs, which show up as letters in a visibly different style.
Language support also affects performance. Fonts that cover many scripts are larger. Google Fonts splits many families into subsets by script and sends the browser only the ranges that the page's text needs. You will see how the services handle this in the embedding chapters.
Weights and Styles
A weight is the thickness of a font's strokes, and CSS expresses it as a number from 1 to 1000. The common values are 400 for regular and 700 for bold. A style is the slant: normal, italic, or oblique.
Each weight and style is usually a separate font file, and every file the browser downloads adds load time. A family that offers nine weights does not mean your page should load nine. Decide which weights your design needs, then check that the family has them.
Work from the design:
- List where text appears: body, headings, buttons, captions, and code.
- Note the weight each one uses. A typical page needs regular (400) and bold (700), and sometimes a medium (500) or semibold (600).
- Note whether italics appear in the design, for example for emphasis or citations.
- Check that the candidate font has each weight and style you listed.
If a font lacks a weight your CSS asks for, the browser picks the nearest available one. If it lacks bold or italic entirely, the browser may fake it by thickening or slanting the regular glyphs. This is called synthesized bold or italic, and it looks worse than a real design. Variable fonts, which package a range of weights in one file, are covered in a later chapter.
A Decision Flow
The criteria work best in order. Cheap checks come first, so you can drop unsuitable fonts before spending time on detailed tests.
Defining the role first matters. A heading font and a body font have different jobs, so they can be chosen by different standards. A heading font can have more personality. A body font should prioritize legibility over style.
Common Mistakes
These errors appear often when people choose fonts:
- Choosing from the specimen alone. Specimen pages show a font at its best. Test with your own text.
- Using too many families. Each family adds requests and visual noise. Two families are usually enough, and one family with several weights often works.
- Ignoring weights. Picking a font with only one weight, then relying on bold in the CSS, produces synthesized bold.
- Skipping language checks. A font without Cyrillic or accented characters fails only when that text appears, which may be after launch.
- Choosing a display font for body text. Display fonts lose clarity at small sizes.
- Not testing on real devices. Rendering differs between operating systems, screen densities, and browsers. A font that looks crisp on a laptop may look thin on an older phone.
Putting It Together
Suppose you are building a documentation site that has English text with occasional accented names, code samples, and a table of version numbers. Apply the criteria:
- Role and tone: body text should feel neutral and clear. Headings can be slightly stronger. Code needs a monospace font.
- Legibility: pick a sans-serif with a generous x-height and distinguishable "I", "l", and "1". Prefer tabular figures for the version table.
- Language support: confirm that the Latin Extended range covers the accented names.
- Weights: regular (400) and bold (700) for body and headings, plus italic if citations appear. The monospace font needs regular only.
The result is a short written specification, not yet a font name. You can now go to a catalog and filter against that specification, which is much faster than browsing without a goal. Later chapters turn the specification into link tags and CSS.
Exercise
You are choosing a body font for a Polish-language news site. The design uses regular text, bold subheadings, and italic for quotations. A candidate font has Regular and Bold but no Italic, and its description lists only basic Latin. Which two criteria does it fail, and what will the browser do with the italic text?
Show answer
It fails language support, because Polish needs characters such as ł, ą, and ę that basic Latin does not include, and weights and styles, because there is no italic. The browser will take the missing characters from the next font in the stack, which produces mismatched letters, and it will synthesize italic by slanting the regular glyphs, which looks worse than a designed italic.
Exercise
A teammate picks a decorative display typeface for all text on a dense data-table page, saying it matches the brand. Name two legibility problems this can cause and one change that fixes them without dropping the brand font entirely.
Show answer
Display fonts lose clarity at small sizes, and they often lack tabular figures, so numbers in columns do not align. Keep the display font for the logo and main headings, and set the table and body text in a legible sans-serif or serif chosen for readability.