You are here: Reference > JavaScript > client-side > browser > properties > fontSmoothingEnabled (screen)
fontSmoothingEnabled property (screen)
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:
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:
Font smoothing is disabled. | |||||||
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?
|
Supported by objects:
Related pages:
External links:
User Contributed Comments