Install Chinese fonts on centos7

Source: Internet
Author: User

Install Chinese fonts on centos7

After centos7 is purchased, it is generally blank. Many things need to be installed without any nonsense. install them directly:

1. First copy the font file in windows to the usr/share/fonts/win folder, and then run the following command:

New Font:

[Csharp] view plaincopy
  1. Modify the permission of the font file so that users other than the root user can also use chmod755 *

[root@iZ250234rf8ZTrueType]#mkfontscale[root@iZ250234rf8ZTrueType]#mkfontdir[root@iZ250234rf8ZTrueType]#fc-cache-fv
If the command mkfontscale is not found, install the command yum install mkfontscale (the same command is run for fc: yum install fontconfig)
If cocould not resolve host: mirrors.cloud.aliyuncs.com; Name or service not known "Trying other mirror ., if a similar error occurs, it is likely that the dns resolution problem occurs: in vi/etc/resolv. conf configures two dns:
Nameserver 8.8.8.8 # google Domain Name Server nameserver 8.8.4.4 # google Domain Name Server
Then restart the service network restart.
After the installation command is complete, view the font fc-list to view all fonts.
Restart the machine. If it does not take effect, restart the application reboot;

If not, execute the following:

[Csharp] view plaincopy
  1. # Yumgroupinstallchinese-support
  2. The console terminal must also be UTF-8 encoded.
  3. 1. garbled console Terminal
  4. Add the following content to the last line of the/etc/profile file:
  5. ExportLC_ALL = "zh_CN.utf8"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.