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.

Quick example

h1 {
  /* Prioritizes beautiful text (like using ligatures and better kerning) over rendering speed */
  text-rendering: optimizeLegibility;
}

Quick facts

Initial value
auto
Inherited
Yes
Applies to
text elements
Animation type
discrete

Values

autooptimizeSpeedoptimizeLegibilitygeometricPrecision

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.

Safe to use without fallbacks.

4+
1+
5+
79+
ESC