Wednesday, April 2, 2025

Custom Fonts for GRUB

Have you ever looked at the GRUB boot menu, and just felt bored? Or, more importantly, been completely unable to read it? I have been in both camps, and I finally got up enough motivation to figure out how to fix the problem.

As it turns out, the process is very simple. It's just not very well documented. Here's how to do it in Arch Linux, but the process is pretty similar in any other common distribution:

$ sudo pacman -S ttf-monofur-nerd  # or any other TTF font that you wish to use
$ sudo grub-mkfont -s 60 -o /boot/grub/fonts/monofur.pf2 /usr/share/fonts/TTF/MonofurNerdFont-Regular.ttf

This creates the proper format font file for GRUB, PFF2, which is a format that only GRUB uses.

After doing this, you can add the configuration line to /etc/default/grub, and then regenerate the GRUB configuration:

GRUB_FONT="/boot/grub/fonts/monofur.pf2"

Presto!