How to install the font library for CentOS and the font library for CentOS
Most of the time, we need to do some image generation work (such as verification code). At this time, we generally need to use the system library. But things are always unsatisfactory. The Linux operating system we use cannot be as "flagship" as the Windows operating system does, every minute is missing (for example, we chose Minimum for installation or Chinese Support for installation ). In this case, we have to develop the DIY spirit and install the font library for the operating system. This section describes how to install the font library for the CentOS (Red Hat stream) operating system and how to install fonts on Ubuntu by referring to "how to install fonts on Ubuntu".
If you are interested in Linux. the following figure shows how to deploy the website in. NET. This article is useful because it prompts you that your operating system lacks the relevant library.
At this time, you only need to refer to the operations described in this article.
First, run the following command to install the font management tool:
Yum install-y fontconfig mkfontscale
Then we go to "c: \ windows \ fonts "to copy the fonts we need (Here we copy four types:" Arial "," Comic Sans MS "," Georgia ", and" Times New Roman)
Copy them out (Note: Here is the link between fonts. If you copy a font, the system will copy the affiliated ones as well. You don't need to worry about it)
Then upload it to "/usr/share/fonts"
Run the following three commands to refresh the font cache:
Mkfontscale
Mkfontdir
Fc-cache-fv
Finally, restart the Operating System (Reboot)
Here, readers can execute "fc-list" to check the fonts installed (just look at the text above each small section and add an English one)
Okay. The content in this section is here. Thank you.
My blog post address: http://jhonge.net/Home/Single/26626627
How to display Chinese Characters in centos?
I have encountered the same problem, and I cannot install the Chinese Character Library. During the first installation, I chose to install the font in English. when surfing the Internet, all Chinese characters are garbled. Then I installed the Chinese Character Library, you can't take a look at it for me. Later, I re-installed the system and chose Simplified Chinese as the font during installation. But use the command # ls In centos
Chinese files are also garbled. Later I checked the Internet to find out that centos was not able to implement the culture of the control terminal.
In general, linux's support for Chinese is not very good, which is widely accepted. Haha ......
Centos 64 minimal
Do you have a graphic interface?
Go to system. There is a "Add/delete program" in it. Open the program, find chinese under language, and select "Install ".