Win Chinese font solution in centos

Source: Internet
Author: User

In linux, Chinese fonts are supported. You can find Chinese fonts in the font library on the windows platform. In windows, C: \ windows \ fonts contains the fonts you want, such as simsun. ttc <Simplified Chinese> and other fonts. Storage location of the font library in centos:/usr/share/fonts specific operation steps: ==================================== 1. create a folder in the/usr/share/fonts/chinese folder (windows) [root @ localhost ~] # Mkdir/usr/share/fonts/chinese/windows2. copy the fonts found in windows to the windows folder and change the permissions for the windows folder [root @ localhost ~] # Chmod-R755/usr/share/fonts/chinese/windows3. execute the ttmkfdir command in the font directory <windows> [root @ localhostwindows] # ttmkfdir-e/usr/share/X11/fonts/ encodings/encodings. dir
4. Change the fonts. conf file [root @ localhost ~] # Vi/etc/fonts. conf and add the following line;
/Usr/share/fonts/chinese/windows:
<! -- Fontdirectorylist -->
<Dir>/usr/share/fonts/chinese/windows </dir> # add content
<Dir>/usr/share/fonts </dir> 5. Restart the xfs server [root @ localhost ~] # Servicexfsrestart6. check whether the font has been successfully added. [root @ localhost ~] # Fc-list: lang = zh-cn
New, NSimSun: style = Regular
SimSun: style = Regular # font added successfully
Wen Ding PL Kai Uni, ARPLZenKaiUni: style = Medium
Winding PL fine Shanghai Song Uni, ARPLShanHeiSunUni, and winding PL fine Shanghai Song Uni: style = Regular now, Chinese fonts supported in linux are successfully added

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.