The text-rendering CSS property provides information to the browser about how to optimize when rendering text. Options are: legibility, speed or geometric precision.
Overview tableauto
text-rendering
text-rendering: auto
text-rendering: geometricPrecision
text-rendering: optimizeLegibility
text-rendering: optimizeSpeed
This setting can be helpful when using kerning, which does often not scale linearly and can make text using such fonts look good.
Examples
body {
text-rendering: auto;
}
body {
text-rendering: optimizeSpeed;
}
body {
text-rendering: optimizeLegibility;
}
body {
text-rendering: optimizePrecision;
}
Usage
Gecko note:
In Gecko browsers there is a way to set the threshold value for the auto keyword by changing the preference in browser.display.auto_quality_min_font_size. By default it is set to 20px. On Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) the optimizeSpeed option has no effect because there is no faster way of rendering text than the standard code already does. See bug bug 595688 for more details on that.
NotesThe property is a SVG property not specified in any CSS standard yet. However, user agents including Gecko and WebKit browsers let you apply this property to HTML and XML content on Windows, Mac OS X and Linux via CSS.
Related specificationstext-rendering
text-rendering
text-rendering
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4