Using Windows Fonts in CentOS

  

After installing CentOS 6.4 x86_64 minimum desktop system, I uninstalled the font support package of other countries except China (Chinese). The interface font of the system changed, and it was ugly. Because I used to use the wide fonts such as Consolas, I feel that Microsoft's Yahei and Blackbody are also good, so I copied them together.
Create a new folder under /usr/share/fonts: msfonts Copy the console font directory consola*.ttf, msyh*.ttf, simhei.ttf, simsunb.ttf to /usr/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> ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (red) <dir>/usr/share/X11/fonts/Type1</Dir> <dir>/usr/share/X11/fonts/TTF</dir> <dir>/usr/local/share/fonts</dir> <dir>~/.fonts</dir> due to blue The color font portion already exists, the red font portion should not be incremented, and then fc-cache -f is executed so that the newly added font takes 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 bold Bold, and the monospace font to Consolas, size Both are 10. Of course, you can also choose Microsoft Yahei. (⊙o⊙), I feel much better than the original font.

Copyright © Windows knowledge All Rights Reserved