知乎专栏 |
将字体复制到 /usr/share/fonts 目录中,然后执行 fc-cache 命令即可
[root@netkiller fonts]# fc-cache 或 [root@netkiller fonts]# fc-cache /usr/share/fonts
安装中文字体
# mkdir -p /usr/share/fonts/zh_CN/TrueType/ # cp -r Fonts/* /usr/share/fonts/zh_CN/TrueType/ # chmod 644 /usr/share/fonts/zh_CN/TrueType/* # cd /usr/share/fonts/zh_CN/TrueType/ # mkfontscale # mkfontdir # fc-cache /usr/share/fonts/zh_CN/TrueType/