Skip to main content

Timeline for Can GRUB font size be customised?

Current License: CC BY-SA 4.0

12 events
when toggle format what by license comment
Dec 22, 2023 at 2:43 comment added Alberto Salvia Novella ℹ️ For pixel perfect: Use --verbose to see the default size, then select a --size which is a multiple of that.
Apr 25, 2023 at 11:50 comment added Adrien Rey-Jarthon As @DavidRobertson mentionned, on Ubuntu 22.04 LTS I had this issue where it stopped working after a grub update (current version on 22.04 is 2.06-2ubuntu7.1). The error message is error: prohibited by secure boot policy if we try the loadfont command. As in forums.debian.net/viewtopic.php?t=153356 somebody said there's a fixed version in debian 11.6, I tried leaving LTS and updating to 23.04 to get grub 2.06-2ubuntu16 but to no avail. Has anybody found a working solution?
Apr 18, 2023 at 6:54 comment added cachius sudo /usr/bin/grub-mkfont -s 16 -o /boot/grub/DejaVuSansMono.pf2 /usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf for Linux Mint 21. Note that Grub2 in general now is just referenced as grub.
Dec 21, 2022 at 1:41 comment added David Robertson This worked perfectly for me... until recently. It seems that a security fix to grub means that unsigned fonts are ignored. See bugzilla.redhat.com/show_bug.cgi?id=2144113 and lists.gnu.org/archive/html/grub-devel/2022-11/msg00155.html
Sep 19, 2022 at 6:47 comment added Szczepan Hołyszewski I am trying to use the breeze theme. It already contains fonts as small as 12, so no need to run grub-mkfont, but it just WON'T PICK THEM UP, even if I change ALL fonts to size 12 in theme.txt. It just picks some hardcoded value.
Aug 19, 2021 at 19:30 comment added Nicholas Stommel To make the font in Fedora 34, use sudo grub2-mkfont -s 20 -o /boot/grub2/DejaVuSansMono.pf2 /usr/share/fonts/dejavu-sans-mono-fonts/DejaVuSansMono.ttf To update GRUB on Fedora 34 use sudo grub2-mkconfig -o /etc/grub2-efi.cfg
Aug 3, 2021 at 7:50 comment added mwfearnley @drfumanchu thanks, the same works for Ubuntu 20.04, (along with changing any grub2 references to grub). Also, /etc/default/grub advises to run update-grub, which calls grub-mkconfig, and (I'm hoping) does the right thing with regards to EFI.
Jun 19, 2021 at 3:27 comment added dr fu manchu On Linux Mint 20 the command is grub-mkfont. On my systems, the use of DejaVuSansMono leads to "broken" vertical lines in the box around the boot menu, probably because the vertical box drawing characters are 1 pixel too short. On Mint 20 the only pre-installed font that did it correctly was "FreeMono.ttf" sudo grub-mkfont -s 24 -o /boot/grub/FreeMono.pf2 /usr/share/fonts/truetype/freefont/FreeMono.ttf
S Dec 18, 2020 at 20:27 history suggested Jason R Stevens CFA CC BY-SA 4.0
Added EFI/BOOT specfic command breakdown
Dec 18, 2020 at 15:32 review Suggested edits
S Dec 18, 2020 at 20:27
Mar 13, 2019 at 15:32 comment added scrutari On UEFI system one would use grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
Feb 15, 2012 at 14:34 history answered neydroydrec CC BY-SA 3.0