Linux Chinese font installation

1. Download Chinese fonts

2. View the fonts installed in the current system fc-list :lang=zh

3. Create a directory truetype in /usr/share/fonts/ and copy the fonts to /usr/share/fonts/truetype

4. Generate font index information

[root@master truetype]# mkfontscale
[root@master truetype]# mkfontdir

[root@master truetype]# ll
total 10264
-rw-r--r--. 1 root root      189 Nov  9 09:27 fonts.dir
-rw-r--r--. 1 root root      189 Nov  9 09:27 fonts.scale
-rwxrwxrwx. 1 root root 10499104 May 14  2012 simsun.ttf

5. Check the installed fonts again

fc-list :lang=zh

[root@master truetype]# fc-list:lang=zh
bash: fc-list:lang=zh: command not found
[root@master truetype]# fc-list :lang=zh
AR PL UMing TW:style=Light
AR PL UMing HK:style=Light
AR PL UMing CN:style=Light
SimSun,Arial:style=Regular
AR PL UKai TW MBE:style=Book
AR PL UKai CN:style=Book
AR PL UKai HK:style=Book
AR PL UKai TW: style=Book
WenQuanYi Zen Hei, WenQuanYi Zen Hei, WenQuanYi Zheng Hei, WenQuanYi Zheng Hei: style=Regular
WenQuanYi Zen Hei Mono, WenQuanYi Zen Hei Mono, WenQuanYi Regular Black, WenQuanYi Regular Black: style=Regular
AR PL UMing TW MBE: style=Light
WenQuanYi Zen Hei Sharp, WenQuanYi dot matrix is ​​black, Wenquanyi dot matrix is ​​black: style=Regular
appears Song type

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326976406&siteId=291194637