--2 View the Chinese fonts installed in the current system
[root@redhat6 ~]# fc-list :lang=zh
AR PL UMing TW:style=Light
AR PL UMing HK:style=Light
AR PL UMing CN:style=Light
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 Zheng Hei, WenQuanYi Zheng Hei: style=Regular
WenQuanYi Zen Hei Mono, WenQuanYi equal width and black, WenQuanYi equal width and 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
|
--3 Copy the simsun.ttf font file
[root@redhat6 my_fonts]# mkdir -p /usr/share/fonts/my_fonts |
And copy this file to this directory from another system that has the simsun.ttf font installed.
--4 Generate font index information
[root@redhat6 fonts]# cd my_fonts/
[root@redhat6 my_fonts]# mkfontscale
[root@redhat6 my_fonts]# mkfontdir
[root@redhat6 my_fonts]# ll
total 10276
-rw-r--r--. 1 root root 189 Jan 31 22:33 fonts.dir
-rw-r--r--. 1 root root 189 Jan 31 22:33 fonts.scale
-rw-r--r--. 1 root root 10512288 Jan 31 22:33 simsun.ttf
|
--5 Check the installed fonts again
[root@redhat6 my_fonts]# fc-list :lang=zh
AR PL UMing TW:style=Light
AR PL UMing HK:style=Light
NSimSun, New Song: style=Regular
AR PL UMing CN:style=Light
SimSun, Times New Roman: 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 Zheng Hei, WenQuanYi Zheng Hei: style=Regular
WenQuanYi Zen Hei Mono, WenQuanYi equal width and black, WenQuanYi equal width and black: style=Regular
AR PL UMing TW MBE:style=Light
WenQuanYi Zen Hei Sharp,文泉驛點陣正黑,文泉驿点阵正黑:style=Regular
|