How does CentOS use the fonts that come with Windows

  
                

After many friends have contacted the CentOS system, they found that the fonts that come with the CentOS system are not used to it. I want to change the fonts of the original Windows system. How should I operate? The following small series will introduce you to CentOS to add Windows fonts, let's learn together.

Methods:

Because accustomed to using a monospaced font Consolas, feeling Windows with Microsoft elegant black and black body good, copy it to come.

Create a new folder under /usr/share/fonts: msfonts

Copy the consola*.ttf, msyh*.ttf, simhei.ttf, simsunb.ttf to /usr in the Windows font directory /share/fonts/msfonts directory, modify /etc/fonts/fonts.conf, add the following red part:

"dir" /usr/share/fonts "/dir" "dir" /usr/share/Fonts/msfonts/dir"

"dir"/usr/share/X11/fonts/Type1 "/dir" "dir"/usr/share/X11/fonts/TTF "/dir" "dir" /usr/local/share/fonts/dir"

"dir"~/.fonts "/dir"

Since the blue font part already exists, the red font part does not increase. Line, then execute fc-cache -f to make the newly added font take effect immediately.

In the system--"Preferences--" Appearance font page, modify the application font to Blackbody Normal, the document font to Consolas, the desktop font to Blackbody Normal, the window title font to Blackbody Bold, Monospace font For Consolas, the size is 10. Of course, you can also choose Microsoft Yahei.

The above is the introduction of CentOS using Windows fonts. As you can see from the introduction of this article, you can copy the fonts in Windows to the CentOS system, and you need to make related settings after copying.

Copyright © Windows knowledge All Rights Reserved