🔤Font File Format
Also known as Font Format, TrueType Font, OpenType Font, WOFF, OTF, TTF
The kind of file a font comes in, such as OTF, TTF or WOFF2.
Think of it like
It is like the box a toy comes in. Same toy, a different box for the shop or the post.
Example
A designer installs Inter as an OTF file on her laptop. The website loads the same font as a WOFF2 file.
Why it matters
Definition
Example code
css
@font-face {
font-family: "Inter";
src: url("/fonts/inter.woff2") format("woff2");
}Common mistake
Key takeaways
- 1Desktop files. OTF and TTF, installed on a computer.
- 2Web files. WOFF2, packed small for pages.
- 3Same letters. Only the wrapping is different.