1、检查字体是否已经安装:
fc-list ———-检查所有已有的字体
fc-list :lang=zh ———–只检查中文
如果没有这个命令,那就是没有安装font包,跳到第8步,做好yum源,然后yuminstall *font* 装好后再试试可不可以使用fc-list命令
2、到windows下复制字体
雅黑:msyh.ttf 文件夹也附带了微软雅黑字体,可直接复制使用
3、将要的字体通过SSH复制到/usr/share/fonts/zh_CN目录下,如果没有改目录,用命令:mkdir /usr/share/fonts/zh_CN 来创建,然后再上传
4、修改字体权限,使root以外的用户可以使用这些字体:
cd /usr/share/fonts/zh_CN
chmod 766 msyh.ttf。
5、建立字体缓存:
mkfontscale
mkfontdir
fc-cache -fv
安装emoji
wget https://github.com/eosrei/emojione-color-font/releases/download/v1.4/EmojiOneColor-SVGinOT-Linux-1.4.tar.gz
tar zxf EmojiOneColor-SVGinOT-Linux-1.4.tar.gz
cd EmojiOneColor-SVGinOT-Linux-1.4
cp EmojiOneColor-SVGinOT.ttf /usr/share/fonts/emoji
安装同上