美文网首页
ubuntu 安装 win7 字体

ubuntu 安装 win7 字体

作者: helphi | 来源:发表于2017-07-17 11:31 被阅读0次
  1. C:/Windows/Fonts 整个文件夹复制到 ubuntu 中,假设复制后的路径为 ~/Fonts
  2. 拷贝字体文件到字体文件夹中
sudo mkdir -p /usr/share/fonts/win7
sudo cp ~/Fonts/*.ttf /usr/share/fonts/win7
sudo cp ~/Fonts/*.ttc /usr/share/fonts/win7
  1. 安装字体
sudo chmod -R 644 /usr/share/fonts/win7  #修改字体文件权限
sudo mkfontscale
sudo mkfontdir
sudo fc-cache -fv
fc-list :lang=zh-cn  #查看安装的中文字体
  1. 注销后重新登陆即可使用安装好的字体

除了 /usr/share/fonts/ 目录外,还可以将字体安装在 /usr/local/share/fonts~/.local/share/fonts 或者 ~/.fonts 中,这些目录的定义在配置文件 /etc/fonts/fonts.conf 中,更多信息可参考 https://wiki.ubuntu.com/Fonts

相关文章

网友评论

      本文标题:ubuntu 安装 win7 字体

      本文链接:https://www.haomeiwen.com/subject/nryfkxtx.html