Font beautification settings for Chrome in Linux

Source: Internet
Author: User

Font beautification settings for Chrome in Linux

In Windows, the font rendering technology Cleartype and DirectWrite are messy. In Mac, font rendering is good, so the key is how to make Chrome font rendering more beautiful in Linux? First of all, we need to understand that Chrome's font rendering relies on two points: the font rendering settings of the Linux operating system and Chrome's webpage font rendering control. In the gnoora 22 GNOME 3.16 environment, that is, using gnome-tweak-tool to set the font rendering to "none" and "Rgba", it has no effect on Chrome, chrome still uses the "completely" fine-tuned mode for font rendering, which leads to ugly display of many Chinese fonts. The reason is that Chrome reads the fontconfig configuration of the Linux system. By default, the system fontconfig does not configure the global hint of the font, therefore, we only need to create a local under the/etc/fonts directory. conf. Write the following content:

<? Xml version = "1.0"?>
<! DOCTYPE fontconfig SYSTEM "fonts. dtd">
<Fontconfig>
<Match target = "font">
<Edit name = "autohint" mode = "assign">
<Bool> false </bool>
</Edit>
<Edit name = "hinting" mode = "assign">
<Bool> false </bool>
</Edit>
<Edit name = "hintstyle" mode = "assign">
<Const> none </const>
</Edit>
</Match>
</Fontconfig>

After saving, you can find that all the programs in the system can follow this setting. The font rendering is closed after fine-tuning, and the Chinese font rendering will look very nice. Then, install the stylish plug-in Chrome to create a style that is valid for all websites. The application scope is "all" and the content is as follows:

Body *{
Font-family: "Source Han Sans CN "! Important;
}
Pre, code, kbd, samp, var {
Font-family: "Monospace", "Source Han Sans CN "! Important;
}

This ensures that Chrome uses this style for access to any website. Of course, don't forget to set the font as your favorite font for Chrome settings.

Install Google Chrome in Ubuntu 14.04 LTS

Solution to Chrome dependency installation in Ubuntu 13.04

Install Chrome in openSUSE

Install Google Chrome 35 Beta for Linux Users

Install Google Chrome in CentOS 6.x

Chrome details: click here
Chrome: click here

This article permanently updates the link address:

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.