Install Nerd Fonts on Arch Linux Manually
Many applications depend on Nerd Fonts to display correctly. Learn how to manually install nerd fonts on Arch Linux using curl and wget.
Prerequisites to installing Nerd Fonts On Arch Linux
This tutorial assumes you have the following packages installed:
- Curl
- Unzip
Installing Nerd Fonts Manually On Arch Linux Instructions
Note: In this example I am using 0xProto Nerd Font but please use the correct font when
following the directions below.
cd ~/Downloadsmkdir fonts- Navigate to nerdfonts.com
- Click
Downloads - Find the font you want to install
- Right-click on the
Downloadbutton and select copy link - In the
~/Downloads/fontsfolder fetch the zip file with:curl -LO https://github.com/ryanoasis/nerd-fonts/releases/download/v3.4.0/0xProto.zip sudo mkdir -p /usr/share/fonts/nerd-fonts/0xOProtosudo unzip 0XProto.zip -d /usr/share/fonts/nerd-fonts/0xOProtofc-cache -fvvim ~/.config/alacritty/alacritty.toml- Update Alacritty Following This Template
Alacritty TOML Example
[general]
import = [
"~/.config/alacritty/themes/themes/tokyo_night.toml"
]
[font]
size = 14.0 # Set your desired size
[font.normal]
family = "BlexMono Nerd Font"
style = "Regular"
[font.bold]
family = "BlexMono Nerd Font"
style = "Bold"
[font.italic]
family = "BlexMono Nerd Font"
style = "Italic"
What Are Nerd fonts
Nerd fonts are special fonts that can be installed that support icons and ligatures. Many applications in the Linux ecosystem depend on Nerd Fonts to offer a more visually pleasing experience when displaying text. They can display icons and also support ligature for some fancy text output. Nerd Fonts are supported by all major operating system but do not come pre-installed most of the time.
Nerd Fonts can be used in lieu of popular icon libraries such as Font Awesome and a nice benefit is that in can be used to patch existing fonts. This allows us to embed new icons into an existing typographical fontface. Nerd Fonts have great community support and continue to recieve updates and improvements as the project matures. You can read all about Nerd Fonts at nerdfonts.com or at github.com