Introduction
Fonts play a huge role in improving the usability and look of your Linux system. Whether you’re customizing your desktop, making documents easier to read, or setting up a programming-friendly font in your terminal, Arch Linux gives you full control over font installation and configuration.
In this guide, we’ll walk through the process of how to install and set fonts on Arch Linux, covering both system-wide installation and user specific setup. We’ll also look at how to install popular developer fonts like Fira Code, which is widely used in coding environments for its clean design and ligatures.
Step 1: Update Your System
Before installing new fonts, make sure your system is up to date:
sudo pacman Syu
This ensures compatibility and prevents issues when downloading font packages.
Step 2: Install Fonts from Official Repositories
Arch Linux provides many fonts through its repositories. For example:
sudo pacman S ttf dejavu ttf-liberation noto-fonts
These fonts cover general usage, including UI, documents, and web browsing.
Step 3: Install Developer Fonts (Like Fira Code)
If you’re a programmer, fonts like Fira Code are highly recommended. They improve readability and support programming ligatures. Install it directly from the repos:
sudo pacman S ttf fira code
Once installed, you can set Fira Code as the default font in your terminal emulator or text editor.
Step 4: Install Fonts from the AUR
Some fonts aren’t available in the official repositories but can be installed from the AUR (Arch User Repository). For example:
yay S ttf ms fonts
This installs Microsoft’s TrueType fonts for compatibility with documents.
Step 5: Install Fonts Manually
If you’ve downloaded fonts (e.g., .ttf or .otf files), you can install them manually:
System wide: Copy fonts to /usr/share/fonts/
User specific: Copy fonts to ~/.local/share/fonts/
Then refresh the font cache:
fc cache fv
Step 6: Set Default Fonts
Font configuration on Arch Linux is managed by fontconfig. To change default fonts, create or edit configuration files in:
/etc/fonts/local.conf
Example snippet to prioritize Fira Code for monospace fonts:
<alias>
<family>monospace</family>
<prefer>
<family>Fira Code</family>
</prefer>
</alias>
Step 7: Verify Fonts
Run the following to check if fonts are installed:
fc list | grep "Fira Code"
If the font appears in the list, it’s successfully installed and ready to use.
Conclusion
Installing and setting fonts on Arch Linux is a straightforward process once you know where to look. By updating your system, using official repos, the AUR, or manual installation, you can easily customize your font setup. For developers, adding Fira Code provides better readability and a modern coding experience. With the right fonts in place, your Arch Linux system will look clean, professional, and tailored to your workflow.