Font settings in Linux

Source: Internet
Author: User

Font settings in Linux

For Chinese users, the most important use of Linux as a desktop is the font and input method. Here I will introduce my settings.
The input method is used scim, there are many friends at the beginning may not be able to call the input method, this is because the local encoding settings are incorrect, set to UTF-8 is generally no problem.

The font file in Windows contains simsun in the C:/Windows/fonts folder. the TTC file is named simsun under/usr/share/fonts/TrueType/freefont. TTF

Here you can take a look at some TrueType fonts, but this font looks quite comfortable.

Start a shell and run FC-Cache-FV.

Edit/etc/fonts. conf
Add
<Match target = "font">
<Test name = "family"> <string> Vera sans yuanti </string> </test>
<Edit name = "globaladvance"> <bool> false </bool> </Edit>
</Match>

<Match target = "font">
<Test name = "family"> <string> Vera sans yuanti mono </string> </test>
<Edit name = "globaladvance"> <bool> false </bool> </Edit>
</Match>

<Match target = "font">
<Edit name = "antialias"> <bool> true </bool> </Edit>
<Edit name = "hinting"> <bool> false </bool> </Edit>
<Edit name = "autohint"> <bool> false </bool> </Edit>
</Match>

<Match target = "font">
<Test name = "pixelsize" compare = "more_eq"> <double> 12 </Double> </test>
<Test name = "pixelsize" compare = "less_eq"> <double> 16 </Double> </test>
<Edit name = "antialias"> <bool> false </bool> </Edit>
<Edit name = "hinting"> <bool> true </bool> </Edit>
<Edit name = "autohint"> <bool> false </bool> </Edit>
</Match>

In the future, the font will become as detailed as windows.
Add:
<Match target = "font">
<Test name = "family"> <string> Vera sans yuanti </string> </test>
<Edit name = "globaladvance"> <bool> false </bool> </Edit>
</Match>

<Match target = "font">
<Test name = "family"> <string> Vera sans yuanti mono </string> </test>
<Edit name = "globaladvance"> <bool> false </bool> </Edit>
</Match>

<Match target = "font">
<Edit name = "antialias"> <bool> true </bool> </Edit>
<Edit name = "hinting"> <bool> false </bool> </Edit>
<Edit name = "autohint"> <bool> false </bool> </Edit>
</Match>
It will make the font as crude as Mac OS.

But do not add both.

Through the above settings, we should say that the font is good. This article is just a reference for new users, so that friends can take less detours and avoid friends who want to use Linux from returning to Windows due to font problems.

 

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.