text-rendering
Tells the browser what to prioritize when rendering text: speed of display, readability (legibility), or geometric precision. 'optimizeLegibility' is great for making headlines look their best.
It is documented as part of the Scalable Vector Graphics specification.
Syntax
/* Usage Example */
h1 {
/* Prioritizes beautiful text (like using ligatures and better kerning) over rendering speed */
text-rendering: optimizeLegibility;
}
/* Syntax */
text-rendering: auto;
text-rendering: optimizeSpeed;
text-rendering: optimizeLegibility;
text-rendering: geometricPrecision;
/* Global values */
text-rendering: inherit;
text-rendering: initial;
text-rendering: revert;
text-rendering: revert-layer;
text-rendering: unset;
text-rendering Browser support
Widely available
Since
2020 96% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2020.
4+
1+
5+
79+