Javascript Reference
Categories: screen

javascript screen fontSmoothingEnabled

@March 15, 2008, 1:22 a.m.
fontSmoothingEnabledFirefox/Netscape/NN n/a IE 4(Win) Chrome/Safari/DOM n/a  

Read-only  

Returns Boolean true if the user has enabled Smooth Edges for fonts in the Windows Display control panel. The setting may influence the font-related style sheet you link into a document.

 
Example
 
var styleFile = "css/corpStyle.css";
if (screen.fontSmoothingEnabled) {
    styleFile = "css/corpStyleFancy.css";
}
document.write("<link type='text/css' rel='stylesheet' href='"  +
    styleFile + "'>");
 
Value

Boolean value: true | false.

 
Default

false


Powered by Linode.