font-optical-sizing
For variable fonts, this property automatically adjusts the shape of letters to be more readable at small sizes or more elegant at large sizes.
It is documented as part of the CSS Fonts specification.
Syntax
/* Usage Example */
.small-text {
/* Automatically optimizes the font for small sizes */
font-optical-sizing: auto;
font-size: 10px;
}
/* Syntax */
font-optical-sizing: auto;
font-optical-sizing: none;
/* Global values */
font-optical-sizing: inherit;
font-optical-sizing: initial;
font-optical-sizing: revert;
font-optical-sizing: revert-layer;
font-optical-sizing: unset;
font-optical-sizing Browser support
Widely available
Since
2020 95% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2020.
79+
62+
13.1+
17+