Web fonts (@font-face)

Loading your own font files so the site looks the same everywhere.

Also called: @font-face, woff2, font-display, Google Fonts, variable font

Domain
Languages
Type
Term
Source
General
Language
CSS

In plain English

Host fonts yourself (WOFF2) instead of loading them from Google, which is faster and avoids a GDPR issue in the EU. font-display: swap shows fallback text immediately while the font loads.

Example

The fonts are hosted on our own server, not loaded from Google.

In code

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

Learn more

Related terms

Added 2026-11-30 · Last reviewed 2026-11-30