很多用户从window下切换到银河麒麟系统后发现系统里面很多字体都无法使用了,下面我们来看看怎么在银河麒麟下安装字体

1、把window下的字体拷贝到银河麒麟下
windows字体存放路径:c:\windows\Fonts
2、在银河麒麟下更改Fonts文件夹名称为microfonts
注:可以根据自己的想法来取名,但是要注意大小写。Linux下命令、文件都需要区分大小写
3、把文件拷贝到/usr/share/fonts目录下
3.1桌面空白处点击右键-选择在终端中打开
3.2拷贝文件
andy@fanqie:~/桌面$ sudo cp -r microfonts/ usr/share/fonts #拷贝文件到fonts文件夹下
andy@fanqie:~/桌面$ cd usr/share/fonts #进入fonts
andy@fanqie:/usr/share/fonts$ ll #查看文件夹
总用量 64
dr-xr-xr-x 2 root root 20480 3月 5 10:25 microfonts/ #文件已经拷贝过
4、更改目录的所有者及所属组
andy@fanqie:/usr/share/fonts$ sudo chown -R andy:andy microfonts/ #递归更改microfonts的所有者及所属组.我的用户名为andy
andy@fanqie:/usr/share/fonts$ ls -l # 查看是否更改成功
dr-xr-xr-x 2 andy andy 20480 3月 5 10:44 microfonts
5、更改目录及文件权限
andy@fanqie:/usr/share/fonts$ sudo chmod 775 microfonts/
#更改microfonts目录的权限为775
andy@fanqie:/usr/share/fonts$ sudo chmod 664 microfonts/*
#更改microfonts目录下所有文件的权限为664 *代表所有文件
6、更新字体缓存信息
andy@fanqie:/usr/share/fonts$ sudo mkfontscale #为字体文件创建索引
andy@fanqie:/usr/share/fonts$ sudo mkfontdir #在目录中创建字体的文件索引
andy@fanqie:/usr/share/fonts$ sudo fc-cache -fv #建立字体信息缓存文件
# fc-cache -f 强制更新 -v 显示 详细信息
更新完成后请重新启动计算机

扫一扫关注我们,
更多咨询早知道!
文章转载自四川筑信盛达科技有限责任公司,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。