Ask Your Question

Creating Grub2 Fonts

asked 2016-12-11 15:09:22 -0600

graceful gravatar image

updated 2016-12-11 15:10:23 -0600

How do I create fonts for grub2? I've seen some instructions; but they're not very complete. In particular I've read that the default grub2 font "unicode.pf2" can prevent background images from being displayed. I'd like some other fonts to chose from to test this theory. Personally, I like the look of the default font; but I'd like to eliminate whatever limitations it has by replacing it with a sans-serif font that looks similar and won't have issues of its own. I should also probably have more than one. What are some good fonts to start with and how do I make them? grub2 needs pf2.


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-06-08 14:09:47 -0600

I'm using CentOS and I believe it's much the same.

unicode.pf2 is installed by default at /usr/share/grub/ It seems to contain all system fonts.

You can use the grub2-mkfont command to create a font for grub to use:

grub2-mkfont -v --range=0x0-0x7f -o /boot/grub2/fonts/myfont.pf2 -s <size> ./myfont.ttf

change the names to your font name. Specify a <size> - eg. 10 or 12

Then edit /etc/default/grub and add the line:


Finally you must recreate the boot config file:

grub2-mkconfig -o /boot/grub2/grub.cfg
edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-12-11 15:09:22 -0600

Seen: 674 times

Last updated: Dec 11 '16