How to add custom fonts on Linux

  

I think the default font of Linux system is not good, want to change style? Want to increase the type of system font? Let's take a look at how to install custom fonts for Linux systems.

1, change the font configuration file (need Root privileges), will need to add fonts added to the list

code is as follows:

sudo gedit /etc /fonts /fonts.conf

The code is as follows:

"! -- Font directory list --"

"dir"/usr/share/fonts "/dir"

"dir"/usr/X11R6/lib/X11/fonts "/dir"

"dir" /usr/local/share/fonts "/dir"

"dir"~/.fonts "/dir"

"dir"~/setting /fonts/dir"

2. Execute the following command

The code is as follows:

sudo mkfontscale

sudo mkfontdir

sudo fc -cache -fv

The above is a description of the Linux installation of custom fonts, first you have to determine whether you have permission to modify, then add a custom font in the list, and finally execute the command in the text.

Copyright © Windows knowledge All Rights Reserved