简介:linuxmint安装微软雅黑字体
linuxmint安装微软雅黑字体
在Linux系统中,微软雅黑字体是一种非常常见的字体,因为它在许多应用程序中都具有很好的可读性和美观性。为了在Linux系统中安装微软雅黑字体,你可以使用以下方法:
一、 准备工作
打开终端
更新软件包索引:
sudo apt update
sudo apt install apt-utils
二、 获取微软雅黑字体
sudo apt-get update
wget https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb -O packages-microsoft-prod.debsudo dpkg -i packages-microsoft-prod.debsudo apt-get install -fsudo apt-get clean
三、 安装微软雅黑字体
sudo nano /etc/fonts/fonts.conf
sudo nano /etc/fonts/fonts.conf
# 微软雅黑字体配置* 字体名称:Microsoft YaHei* 字体编码:utf-8* 安装字体:MSReferenceFrenzyShape7:195#…*drop.tkwb: Identity from XIMGThis file was created by XIMG (http://www.ximg.com/)*/usr/share/fonts/truetype/msyh.ttc:且更新为2006年5月版*/usr/share/fonts/ttf-msyh.ttf:且更新为2006年5月版*/usr/share/fonts/otf/msyh.otf:且更新为2006年5月版*/usr/share/fonts/woff/msyh.woff:且更新为2006年5月版*/usr/share/fonts/ttf-msyh.ttf:且更新为2006年5月版*/usr/share/fonts/otf/msyh.otf:且更新为2006年5月版*/usr/share/fonts/woff/msyh.woff:且更新为2006年5月版
sudo nano /etc/fonts/fonts.conf
nano -w -quit
sudo systemctl restart font-managersudo systemctl restart terminal-toolssudo systemctl enable font-managersudo systemctl enable terminal-tools
nano ~/.fontconfig.conf
cat /etc/fonts/fonts.conf
如果你看到了字体列表,微软雅黑字体应该已经被正确地安装在你的系统中了。
至此,你已经成功地在Linux系统中安装了微软雅黑字体。在未来的使用中,你可以在终端中使用微软雅