1
0
mirror of https://github.com/google/fonts.git synced 2024-12-18 22:31:31 +03:00
fonts/knowledge/glossary/terms/file_size/content.md

13 lines
1.2 KiB
Markdown
Raw Normal View History

2021-12-07 22:28:03 +03:00
[Web fonts](/glossary/web_font), just like all website assets, are resources that need downloading to a users computer when they view a website; therefore, just as page loading times are affected by the file size of images used on a website, they're also affected by the size of the [font](/glossary/font) files.
<figure>
![An abstract representation of a browsers Inspect panel, showing assets downloaded from a website and their file size in kilobytes.](images/thumbnail.svg)
</figure>
At the simplest level, this is a valid argument for using only a small number of [typefaces](/glossary/typeface) in our designs, but also it means limiting the number of [weights](/glossary/weight) and [styles](/glossary/style) used on the site to save on file size.
This is a core advantage of [variable fonts](/glossary/variable_fonts): If were using multiple weights and styles (i.e., more than the “usual” Regular, Italic, Bold, and Bold Italic), all of them are contained in one file—and that file is almost always considerably smaller than downloading individual font files. Plus, there's virtually no limit to the number of discreet styles we can use with variable fonts. This allows for a much richer typographic experience.