Some @font-face fonts don't play nice with non-cleartype settings (gets really choppy on the edges)
Is there a way to detect this via javascript so that I can do a modernizr-style class addition to the body if cleartype is off so I can use this in my CSS
In IE 6+ you can check the screen.fontSmoothingEnabled
property. Otherwise you need to use an html 5 canvas to check for this.
来源:https://stackoverflow.com/questions/4328558/can-you-detect-if-cleartype-is-enabled-on-pc-via-javascript