当前位置: 首页 > 工具软件 > Nerd-fonts > 使用案例 >

linux kylin 终端字体,安装Nerd Fonts字体

孔扬
2023-12-01

Nerd Fonts is a project that patches developer targeted fonts with a high number of glyphs (icons).

Specifically to add a high number of extra glyphs from popular ‘iconic fonts’ such as Font Awesome, Devicons, Octicons, and others.

下载字体, 存放在字体目录1

2mkdir -p ~/.local/share/fonts

cd ~/.local/share/fonts && curl -fLo "Droid Sans Mono for Powerline Nerd Font Complete.otf" https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/DroidSansMono/ complete/Droid%20Sans%20Mono%20for%20Powerline%20Nerd%20Font%20Complete.otf

生成字体信息缓存1fc-cache -vf ~/.local/share/fonts/

查看是否安装成功1

2fc-list | grep -i droid

/home/kylin/.local/share/fonts/Droid Sans Mono for Powerline Nerd Font Complete.otf: DroidSansMonoForPowerline Nerd Font:style=Book

fc-cache - build font information cache files

fc-cache扫描字体目录并生成字体信息的缓存, 然后应用程序就可以立即使用这些新安装的字体

fc-list - list available fonts

fc-list :lang=hi - Lists font faces that cover Hindi.

设置gnome-terminal使用新字体1gnome-terminal -> Edit -> Profile Preferences -> Text Appearence -> Custom Font:DroidSansMonoForPowerline Nerd Font Book

查看系统字体

gsettings get org.gnome.desktop.interface font-name

将系统字体修改为使用 Sans 10号字体

gsettings set org.gnome.desktop.interface font-name ‘Sans 10’

 类似资料: