Safari 3.1 GDI mode rendering solves font Deficiency

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.