var _gaq = _gaq || []; _gaq.push([\'_setAccount\', \'UA-13211647-1\']); _gaq.push([\'_trackPageview\']); (function() { var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true; ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\'; var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s); })();

How to reset font settings to default in Google Chrome

Google Chrome

I often need to reset font settings to default when capturing Web page or building its UI. However Google Chrome does not have any function to reset settings to default (I think). That is why I searched the net for the method to reset font settings to default by editing Google Chrome settings file directly.

Follow these steps to reset font settings to default in Google Chrome.

  1. Exit Google Chrome
  2. Backup Google Chrome settings file (*1)
  3. Open Google Chrome settings file, and remove “webkit.webprefs.fonts” property (*2)
  4. Open font settings window (*3) in Google Chrome, and make sure that settings are initialized properly

*1 Gogole Chrome settings file is “User Data\Default\Preferences” file. Generally “User Data” folder path is as follows.

Windows 2000, XP
C:\Documents and Settings\[User]\Local Settings\Application Data\Google\Chrome\User Data
Windows Vista, 7
C:\Users\[User]\AppData\Local\Google\Chrome\User Data
Linux
~/.config/google-chrome
Mac OS X
~/Library/Application Support/Google/Chrome

*2 I think “webkit.webprefs.fonts” property is defined at the bottom of “Preferences” file. Remove red code below.

    "webkit": {
       "webprefs": {
-         "fonts": {
-            "fixed": {
-               "Zyyy": "Courier New"
-            },
-            "sansserif": {
-               "Zyyy": "Arial"
-            },
-            "serif": {
-               "Zyyy": "Times New Roman"
-            },
-            "standard": {
-               "Zyyy": "Times New Roman"
-            }
-         }
       }
    }

*3 Folow these steps to open font settings window in Google Chrome.

  1. Click the Chrome menu button on the toolbar – [Settings]
  2. Click [Show advanced settings…] link – [Customize fonts…] button in [Web content] section

The following [Fonts and encoding] window is opened in Windows.

Fonts and encoding (Google Chrome)

BTW in the question about font settings in Google Chrome, I often find such answer that “default value is blah-blah-blah font”, but it is different according to its environment in fact, so such answer is not proper generally.

Post Tagged with ,

Leave a Reply

Your email address will not be published.