1
0
mirror of https://github.com/google/fonts.git synced 2024-12-18 06:11:33 +03:00
fonts/knowledge/glossary/terms/web_font/content.md
2021-12-07 09:28:03 -10:00

15 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

A web font is any [font](/glossary/font) used in a websites design that isnt installed by default on the end users device—a counterpart to a [system font](/glossary/system_font_web_safe_font).
<figure>
![An abstract representation showing the letter M placed on a file icon.](images/thumbnail.svg)
</figure>
The widespread adoption of web fonts happened around 20092011 thanks to mainstream browsers increased support for two things: `@font-face` declarations in CSS and the WOFF file format.
WOFF (and its successor WOFF2) are compressed [file formats](/glossary/font_format) created specifically for web fonts. Although regular [OpenType](/glossary/open_type) fonts (TTF and OTF files) can be used as web fonts, such usage is not recommended as it usually contravenes [license](/glossary/licensing) agreements—and the files are significantly larger. WOFF and WOFF2 fonts cannot usually be installed on desktop computers.
Note that web fonts are assets that need downloading, and therefore affect the overall performance of page load times; i.e., the more web fonts we use, the longer itll take for our websites to load. This is potentially offset with the use of [variable fonts](/glossary/variable_fonts).