You are here: Reference > JavaScript > client-side > browser > properties > fontSmoothingEnabled (screen)

fontSmoothingEnabled property (screen)

Browser support:
Returns a Boolean value that indicates whether font smoothing is enabled.
There is no standard solution to enable or disable font smoothing from JavaScript.

Syntax:

object.fontSmoothingEnabled;
You can find the related objects in the Supported by objects section below.
This property is read-only.

Possible values:

Boolean that indicates the state of the font smoothing.
One of the following values:
false
Font smoothing is disabled.
true
Font smoothing is enabled.
Default: false.

Example HTML code 1:

This example illustrates the use of the fontSmoothingEnabled property:
<head>
    <script type="text/javascript">
        function GetFontSmooth () {
            alert ("fontSmoothingEnabled: " + screen.fontSmoothingEnabled);
        }
    </script>
</head>
<body>
    <button onclick="GetFontSmooth ();">Get the state of font smoothing!</button>
</body>
Did you find this example helpful? yes no

Supported by objects:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content