Install fonts in Linux

Take installing the simsun font as an example
, you can download it online, or you can find the corresponding font in the windows directory. Here is a copy of a simsun.ttf file from another system.
You can use the
#fc-list 
command to view the Chinese fonts installed in the current system
and then copy the font files to /usr/share/fonts/
#mkdir /usr/share/fonts/my_fonts
#cp /home/simsun.ttf my_fonts/
#cd my_fonts/
#fc-list
You can see the fonts you just installed

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326143515&siteId=291194637