{"id":164823,"date":"2014-03-05T14:14:26","date_gmt":"2014-03-05T21:14:26","guid":{"rendered":"http:\/\/css-tricks.com\/?page_id=164823"},"modified":"2014-03-06T07:11:38","modified_gmt":"2014-03-06T14:11:38","slug":"text-rendering","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/t\/text-rendering\/","title":{"rendered":"text-rendering"},"content":{"rendered":"

The text-rendering<\/code> property in CSS allows you to choose quality of text over speed (or vice versa) allowing you to fine tune optimization by suggesting to the browser as to how it should render text on the screen. Said another way in MDN<\/a>:<\/p>\n

The text-rendering<\/code> CSS property provides information to the rendering engine about what to optimize for when rendering text. The browser makes trade-offs among speed, legibility, and geometric precision.<\/p><\/blockquote>\n

You can see some before\/after examples here<\/a>. Sometimes the result is just straight up better kerning:<\/p>\n

<\/figure>\n

The text-rendering<\/code> property is not defined in any CSS standard<\/strong>. It’s actually an SVG property<\/a>. However, Gecko\/WebKit\/Blink browsers let you apply this property to HTML elements.<\/p>\n

Be aware that Windows, Linux and OS X each (may) have different text-rendering engines. Not to mention that different browsers each have their own text rendering defaults, so there is no guarantee that your font treatments will be displayed as intended on the user\u2019s system. You can learn more about type rendering systems and operating systems on the Typekit blog<\/a>.<\/p>\n

There are four possible values:<\/p>\n