Keep the count low, and the reason is mechanical. Every style you ask for is usually its own file, and every file is a separate download.12
Where the count comes from
Words like "font" get used loosely. web.dev draws the lines: a font family (say, a typeface called by one name) is made of styles, such as light, medium or bold italic. A font file contains a single style, unless it's a variable font.1
So one family in regular, bold, italic and bold italic is four files. Two families in the same styles are eight. The page only fetches a style if something on it uses that style.1
MDN advises providing as few web font files as possible. Keeping files and formats to a minimum also reduces what the browser has to fetch.2
What each extra costs
Sources don't give a standard size per weight, because it varies by font. They do say a full font with every style and every glyph, which is each letter or symbol shape, can easily result in a multi-megabyte download.3 The aim is for visitors to download only what they'll use.3
Real sizes for your own fonts show up in the Network panel. This walk-through shows where to look.
Three ways to cut the count
| Approach | What it does | Trade-off |
|---|---|---|
| Fewer families and weights | Fewer files to fetch2 | Less variety in your design |
| System font for body text | No download, since the font is already on the device1 | Looks different on different devices1 |
| One variable font | One file can replace several separate files1 | The single file is usually bigger1 |
System fonts. A system font is the default font a device's own screens use. It varies by operating system and version. Because it's already installed, it doesn't need to be downloaded, and web.dev says system fonts can work particularly well for body text.1 The CSS is font-family: system-ui.1
Variable fonts. A variable font has a default style and "axes" for changing it, such as a weight axis that stands in for separate light, regular, bold and extra bold files.1 But not everyone benefits. Variable fonts contain many styles, so they usually have larger files than a single-style font. The sites that gain most use a variety of weights and styles.1
Which suits whom
- A site with plain text and one or two bold words: a system font for body text, and perhaps one web font for headings.
- A site using four or more styles of one family: a variable font is worth a look. Compare the file size against the separate files you'd replace.1
- A site where the brand font matters: keep the web font, but only the styles you use.
There's no magic number in the sources. The rule they agree on is to ask for only what the page actually uses. If you aren't sure how many your site loads, check it in the developer tools.
Two related pages: one on the flashing and jumping that late fonts cause, and one on the hosting choice that decides where files come from.
Cited material
- Best practices for fonts, web.dev (Google)
- Web fonts, MDN Web Docs (Mozilla)
- Optimize WebFont loading and rendering, web.dev (Google)
