← Back to release summary

Auto range support for font descriptors inside @font-face rule

Category
CSS
Type
Chromium catches up
Status
Enabled by default (Chrome 109)
Intent stage
Start prototyping

Summary

Auto range support for variable fonts in 'font-weight', 'font-style' and 'font-stretch' descriptors inside '@font-face' rule.

Motivation

Variable fonts provide users the opportunity to choose how heavy or slanted or wide the typeface should be, rather than having those decided by the type designer. For variable fonts, in Chrome, it is required to add the supported range for 'font-weight', 'font-style' and 'font-stretch' descriptors inside @font-face rule, otherwise variable fonts would either be synthesizing bold faces or the text will appear as normal. In CSS WG issue #2485 it was resolved to add a default keyword 'auto'.

Standards & signals

Explainers: https://bugs.chromium.org/p/chromium/issues/detail?id=973194 https://drafts.csswg.org/css-fonts/#font-prop-desc

View on chromestatus.com