Hi I want to use the Uni3-DejaVu43x24 font from the console-setup package as my Grub2 font. I have already tried this font as a console font and it works great on my 4k laptop display as a console font; it is the perfect size.
I did the following to extract this font into the /usr/lib/kbd/consolefonts/ directory.
I use these two lines, presently, to make the font size large enough on my 4k display, but of course the fonts look a little bit fuzzy at 1280x720 resolution:
First you need to convert the psf file to a pf2 file, which is what Grub uses. Iâm not sure which utility you can use for that. Alternatively you can convert an existing ttf file per the example that @steppybug gave.
Copy the font to /boot/grub2/fonts/DejaVuSansMono.pf2
# dnf provides /usr/share/fonts/dejavu-sans-mono-fonts/DejaVuSansMono.ttf
dejavu-sans-mono-fonts-2.37-24.fc41.noarch : DejaVu Sans Mono, a mono-space sans-serif font family
Repo : fedora
Matched From :
Filename : /usr/share/fonts/dejavu-sans-mono-fonts/DejaVuSansMono.ttf
Then install it
# dnf install dejavu-sans-mono-fonts
This solution is one where grub2 is redering the font to a gfxterm. I am trying to find out how to use efitextmode and use UEFI provided fonts. That grub2 module does not seem to be compiled in in the grub2-efi package fedora includes. Abandoning for now. Now to see if sdboot can use built-in efi fonts in various sizesâŚ
I find that using the full resolution graphics and the 43 point .pf2 font looks good, but the cursor seems to move very slow, especially when editing the kernel parameters using âEâ. So, I switched back to using 1280x720 and at least the cursor is more responsive. At least I can say I tried it your way.