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

What is the font directory of the linux system?

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly shows you "what is the font catalog of the linux system", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "what is the font catalog of the linux system" this article.

The font directory of the linux system is in the "/ usr/share/" directory, and the full path is "/ usr/share/fonts"; a subdirectory in the font directory is a font that contains font files with the suffix ".ttf".

The operating environment of this tutorial: linux5.9.8 system, Dell G3 computer.

The font directory of the linux system is in the "/ usr/share/" directory, and the full path is "/ usr/share/fonts".

Linux inherits the design idea of Unix with network as the core, and is a multi-user network operating system with stable performance. Maybe many users are not used to the fonts that come with the system, so we can install other fonts by ourselves.

Installation method:

The first step is to prepare the font file, which is usually suffixed by ttf.

Find this path to the system (the directory where the fonts are stored)

/ usr/share/fonts

Create a new directory in which you can choose your own name, just use "win".

Copy the previously prepared font file into this directory (sudo permission may be required here), and then run the following command in turn

Cd / usr/share/fonts/winsudo mkfontscalesudo mkfontdirsudo fc-cache

So there will be two more files in the directory.

Fonts.dir

Fonts.scale

After installation, you can use the relevant fonts.

Note that if you copy the ttf file of a font in Windows to a new subdirectory, you also need to execute the above command in the subdirectory as root user in order to use this font, not to copy it to the / usr/share/fonts directory.

The above is all the contents of the article "what is the font catalog of the linux system". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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