ubuntu 安装字体
sudo mkdir /usr/share/fonts/windowfont
cd /usr/share/fonts/windowfont
把字体上传到windowfont目录下
执行命令
sudo chmod 744 *
sudo mkfontscale
sudo mkfontdir
sudo fc-cache -f -v
完成!!!
如果mkfontscale运行时
mkfontscale: command not found
则需要执行安装命令
sudo apt-get install ttf-mscorefonts-installer
如出现以下提示
可用如下命令行安装
echo “deb http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse” | sudo tee /etc/apt/sources.list.d/multiverse.list
sudo apt-get update
sudo apt-get install ttf-mscorefonts-installer