The simplest font configuration method in Linux

Source: Internet
Author: User

In Linux, how do I use my favorite fonts? There is a huge basket of online articles, but it is a pity that the more you see it, the more confused. What freetype, xtt, xfs, xft, fontconfig, fc-cache, a bunch of inexplicable professional terms plus a bunch of inexplicable configuration files, but we still need to be confused with the X system. Most common people will be tortured.

The configuration in the graphic interface is not available either. However, KDE has a KDE method and GNOME has GNOME tactics. After half a day, Firefox still hasn't changed its webpage, you have to modify the browser configuration ......

After being forced to go crazy, I found a simple method. I only needed a copy and paste operation and a configuration file to modify it.

Copy and paste the font file to any sub-directory under/usr/share/fonts. The two are the font files of.

Generally, after this step is completed, you do not need to run any command to update the cache.

A configuration file:/etc/fonts/conf. d/65-nonlatin.conf

A simple explanation of the font classification, the font names are varied and varied. In fact, there are three types: serif, sans serif, and mono. For the simplicity of this article, I will not explain them here. These three types are listed to modify three of the configuration files.

The figure shows the first line (serif), and the added line is

Microsoft YaHei

The long list is the names of various fonts. The higher the priority, the higher the priority. Therefore, you must ensure that your fonts are listed in front of all other Chinese fonts.

The other two are processed as examples. After modification, save and restart the graphic interface. Then you can see the effect.

Look, this is the legendary.

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.