ubuntu 字体安装 —— 以nerd font为例

首先下载文件

wget -c https://github.com/ryanoasis/nerd-fonts/releases/download/v2.0.0/SourceCodePro.zip

然后解压到文件夹:

sudo unzip SourceCodePro -d /usr/share/fonts/SourceCodePro

转到/usr/share/fonts/SourceCodePro目录,并安装

cd /usr/share/fonts/SourceCodePro
sudo mkfontscale # 生成核心字体信息
sudo mkfontdir # 生成字体文件夹
sudo fc-cache -fv # 刷新系统字体缓存
posted @ 2020-03-25 16:14  骏腾  阅读(10752)  评论(1编辑  收藏  举报