← Back to release summary

Precise src: local() matching in CSS @font-faces by PostScript and Full Font Name

Category
CSS
Type
New or changed feature
Status
Enabled by default (Chrome 77)
Intent stage
Start prototyping

WPT details: Hard to test on WPT due to system fonts not being consistently configured for the WPT harness, see explanations here: https://github.com/web-platform-tests/wpt/issues/13203#issuecomment-463979709

Summary

Precisely match locally installed fonts by PostScript name or full font name, when used in a local() value to a src: descriptor in a @font-face declaration. This means, you can precisely and uniquely select local fonts by specifying their PostScript name or full font name. Previously Blink had implemented this incorrectly and was using the specified font name to perform a family match.

Motivation

Preferring local fonts when a suitable local copy is available avoids network round trips.

Standards & signals

Ecosystem

Docs: https://bugs.chromium.org/p/chromium/issues/detail?id=828317

View on chromestatus.com