拷贝中文字体进入 /usr/share/fonts/zh_CN里面,没有此文件夹自己创建 我拷贝的6个字体是: 宋体(simsun.ttf)、仿宋(simfang.ttf)、黑体(simhei.ttf)、楷体(simkai.ttf)、隶书(simli.ttf)、幼圆(simyou.ttf)
$ cd /usr/share/fonts/zh_CN
$ chmod 777 *
$ mkfontscale
$ mkfontdir
$ fc-cache
测试字体是否安装完毕:
$ fc-list