How to add fonts in Linux system

  

There are really few fonts in Linux. If you want to port the fonts in Windows to Linux, what should you do? Please see the tutorial below:

1, copy the font file to linux, such as named winfonts.

2, copy the copied font folder to the system font folder and modify the permissions

sudo cp {store the font path} /winfonts /usr/share/fonts/

sudo chmod u+rwx /usr/share/fonts/winfonts/*

3, create font cache

cd /usr/share/fonts/winfonts

sudo mkfontscale

sudo mkfontdir

sudo fc-cache -fv

4. Restart the computer (in fact, don't restart...)

Now, when you use it again, you will find that you have added a lot of fonts. How are you, right?

Copyright © Windows knowledge All Rights Reserved