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

1.2 KiB
Raw Blame History

A web font is any font used in a websites design that isnt installed by default on the end users device—a counterpart to a system font.

An abstract representation showing the letter M placed on a file icon.

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 created specifically for web fonts. Although regular OpenType fonts (TTF and OTF files) can be used as web fonts, such usage is not recommended as it usually contravenes license 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.