Skip to content
BENIBIX Learn

Font File Format

Design🔤 TypographyType Selection

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

The right format makes a font work in every app and load fast on the web.

Definition

A font file format is the kind of file a font is saved in. TTF (TrueType) and OTF (OpenType) are the common ones you install on a computer. WOFF and WOFF2 are packed kinds made for websites, so they download faster. The letters inside are the same design. Only the wrapping changes.

Example code

css
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
}
The web page asks for the small web version of the font, not the desktop file.
The page asks for one small WOFF2 file, the web kind of font file.

Common mistake

Putting big desktop font files on a website. Use WOFF2, so pages load faster.

Key takeaways

  1. 1
    Desktop files. OTF and TTF, installed on a computer.
  2. 2
    Web files. WOFF2, packed small for pages.
  3. 3
    Same letters. Only the wrapping is different.

Learn it properly