# Web Font

> A font file sent with a web page. Text then shows in that exact font.

**Field:** Design  
**Category:** Typography  
**Also known as:** Webfont, @font-face, WOFF2

## Think of it like

It is like taking your own pens to school. You do not need to borrow one.

## Definition

A web font is a font file a website sends to the browser, so text shows in that exact font. Without it, the browser can only use fonts already on the reader's device. The file is loaded with a CSS rule called @font-face. The usual format today is WOFF2, which is small. Each extra font file adds a little load time.

## Example

A shop's site loads its brand font from its own server. On every phone, the headings look just like the printed catalog.

## Example code

```css
@font-face {
  font-family: "Brand Sans";
  src: url("/fonts/brand-sans.woff2") format("woff2");
  font-display: swap;
}
```

font-display: swap shows backup text at once, then switches when the font arrives.

## Why it matters

Web fonts let a brand look the same on every device, at the cost of some load time.

## Common mistake

Loading many weights you never use. Each one slows the first view of the page.

## Three principles

- **Sent with the page.** Not just fonts on the device.
- **WOFF2 is the format.** Small and widely supported.
- **Load only what you use.** Each file costs time.

## Related terms

- [Font](https://learn.benibix.com/term/design/font)
- [Font Family](https://learn.benibix.com/term/design/font-family)
- [Variable Font](https://learn.benibix.com/term/design/variable-font)
- [Font File Format](https://learn.benibix.com/term/design/font-file-format)
- [Font Fallback](https://learn.benibix.com/term/design/font-fallback)
- [Google Fonts](https://learn.benibix.com/term/design/google-fonts)
- [Cascading Style Sheets (CSS)](https://learn.benibix.com/term/development/css)

## Taught in

- [Web Fonts and Font Loading](https://learn.benibix.com/learn/design-typography/web-fonts-and-font-loading): Typography, 15/17

---

Source: https://learn.benibix.com/term/design/web-font
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
