Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to add custom fonts to Linux

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article focuses on "how to add custom fonts to Linux". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to add custom fonts to Linux.

Think the default font of Linux system is not good-looking, want to change the style? Want to increase the types of fonts in the system? Let's learn how to install custom fonts for the Linux system with the editor.

1. Modify the font configuration file (Root permission is required) and add the fonts you need to add to the list.

The 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

At this point, I believe you have a deeper understanding of "how to add custom fonts on Linux". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report