← All notes

CSS web fonts: typography properties and loading performance

Answer: Optimize web fonts for Core Web Vitals.

Loading and rendering

If a web font has not loaded, browsers typically delay text rendering.

You can also load font with the preload resource hint and the Font Loading API.

In many situations, this delays First Contentful Paint (FCP).

The practice of font swapping has the potential to cause layout shifts.

In some situations, this delays Largest Contentful Paint (LCP).

Those shifts also impact Cumulative Layout Shift (CLS).

They occur when a web font and its fallback font take up different amounts of space.

Typography properties

The @font-face rule lets you import custom fonts into your webpages.

This ensures the typography you need, independent of user-installed fonts.

Essential CSS font properties include font-family, font-style, font-weight, and font-size.

Paragraph properties such as text-indent and word-spacing are covered later in the same module.

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: web.dev, Best practices for fonts; web.dev, Text and typography. CC-BY-4.0 (https://web.dev/learn/css/flexbox). Copyright Google LLC. web.dev text is CC BY 4.0. Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: web.dev, Best practices for fonts; web.dev, Text and typography. CC-BY-4.0 (https://web.dev/learn/css/flexbox). Copyright Google LLC. web.dev text is CC BY 4.0.

Cite this

Permanent ID: iil:note:c0cxmb95

iinventedlight. 2026. "CSS web fonts: typography properties and loading performance." iinventedlight Library, iil:note:c0cxmb95, version of 2026-11-24. https://iinventedlight.com/library/notes/css-web-fonts/. License: CC-BY-4.0.

@misc{iil_note_c0cxmb95,
  author = {{iinventedlight}},
  title = {{CSS web fonts: typography properties and loading performance}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-24},
  url = {https://iinventedlight.com/library/notes/css-web-fonts/},
  note = {Permanent ID iil:note:c0cxmb95. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

Extra files beside this note

These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.

All artifact files (JSON index)

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/css-web-fonts.md.