Small JS for detecting DirectWrite and similar subpixel based font rendering methods
Latest commit 0b4f316 Jun 7, 2012 @Schepp Schepp Switched from measuring the width to measuring the height relations o…
…f outer and inner containers. Now safe in custom zoom situations.

Signed-off-by: Christian Schaefer <>

Detect Subpixel Font Rendering

Small javascript for checking if DirectWrite is active on the current browser. Might also identify other font rendering methods that are able to deal with subpixels.

It was primarily meant to detect if Firefox on Windows 7 uses DirectWrite or GDI as font rendering method. Under different OS/browsers this script might be buggy. Help and feedback is always appreciated!

Authors: @derSchepp, @gerritvanaaken, @rodneyrehm, @yatil

No rights reserved.