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