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: