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.