Copyright Disclaimer: During reprinting, please use hyperlinks to indicate the original source and author information of the article and this statement
Http://biotechong.blogbus.com/logs/19003155.html
The safari open-source core WebKit development team recently revealed that the reason for Safari font deficiency in Windows is that it uses coregraphic for font anti-sawtooth processing. This mode works well in Mac OS, windows is not so beautiful. Safari 3.1 adopts four font smoothing modes: Standard, soft light, moderate, and strong light, which are implemented by coregraphic. We can manually open the fifth hidden smoothing mode and use the default Windows GDI mode for font rendering. The specific method is as follows:
Open the following hidden directory:
In WINXP
C:/Documents and Settings/your username/Application Data/Apple Computer/Safari/
Under Vista
C:/users/your username/appdata/Roaming/Apple Computer/Safari/
Use NotePad to open the following two files
Webkitpreferences. plist
And
Com. Apple. safari. plist In the preferences folder
The webkitpreferences. plist file contains the following line:
<Key> webkitfontsmoothingtype </key> <integer> 2 </Integer>
Values 0, 1, 2, and 3 correspond to the standard, soft light, medium, and strong light respectively. Here we change them to 4 to enable the GDI rendering mode.
The line in the com. Apple. safari. plist file is
<Key> fontsmoothing </key> <integer> 2 </Integer>
Otherwise, the value in webkitpreferences. plist is automatically restored when Safari is re-opened.
Note:: If you have not modified the safari font smoothing mode before, these two files may not have this line. You can manually add the field, or modify it once in the standard, soft, moderate, and strong modes in safari. This field will appear in the last two files.
After the modification is complete, open safari and find the difference. In this case, the font smoothing field in the appearance option label is empty, and you can change it back to the previous four modes at any time.
The current safari font follows the default smooth mode in windows. There are two optionsStandardAndClear, locatedShow properties-appearance-advanced-use the following methods to smooth the edge of the fontOption.