CKTIS / CSS
text-rendering — text rendering priorities
text-rendering hints at priorities for SVG text: speed, legibility, or geometric precision. It does not guarantee a particular appearance.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
text-rendering: auto | optimizeSpeed | optimizeLegibility | geometricPrecision;text-rendering gives the browser a hint about rendering text. SVG 2 defines it for the text element. The property is inherited, and its initial value is auto.
auto balances priorities, favoring legibility. optimizeSpeed favors speed, sometimes sacrificing anti-aliasing. optimizeLegibility favors legibility, allowing a choice of anti-aliasing and font hinting. geometricPrecision favors outline accuracy, usually reducing hinting, which adjusts glyphs to the pixel grid.
These are hints, not guarantees of particular rasterization. The example compares two priorities; both rows may look identical. Do not treat this property as a switch that guarantees ligatures.
Examples
<!doctype html>
<meta charset="utf-8">
<title>text-rendering</title>
<style>
text { font: 28px serif; }
.legible { text-rendering: optimizeLegibility; }
.precise { text-rendering: geometricPrecision; }
</style>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 360 110" width="360" height="110">
<text class="legible" x="12" y="40">AV office 0123</text>
<text class="precise" x="12" y="85">AV office 0123</text>
</svg>Result
AV office 0123 AV office 0123
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.