05-26-2020, 03:33 PM
(This post was last modified: 05-26-2020, 04:30 PM by PlumberOfSound.)
To give an example:
I'm trying out the custom themes and am working with https://github.com/shvchk/fallout-grub-theme. It has a custom grub font fixedsys-regular-32.pf2 that is part of the theme and is distributed in the theme folder. However, the provided font does not get loaded and the font defaults to the only font specified in the grub/grub.cfg in the EFI partition as 'loadfont ascii' (grub/fonts/ascii.pf2) Adding fixedsys-regular-32.pf2 to grub/fonts/ on the EFI partition and loading it with an additional loadfont line resolves the issue. (ascii.pf2 is not missing). It may be that how grub is being rebuilt after adding the theme that it is not adding the font to the conf.
Sidenote: for anyone who wants to try out fallout-grub-theme, it works great, just a couple tips: the included font is too large (32). To address this simply build a new font, follow the above (until there is an alternative), and update the theme.txt.
Font source: https://www.download-free-fonts.com/deta...-excelsior
How to convert a font for use with grub: http://wiki.rosalab.ru/en/index.php/Grub...tion_guide
I built one for normal menu and one for when highlighted:
I made did some other small tweaks that I can share if anyone is interested.
I'm trying out the custom themes and am working with https://github.com/shvchk/fallout-grub-theme. It has a custom grub font fixedsys-regular-32.pf2 that is part of the theme and is distributed in the theme folder. However, the provided font does not get loaded and the font defaults to the only font specified in the grub/grub.cfg in the EFI partition as 'loadfont ascii' (grub/fonts/ascii.pf2) Adding fixedsys-regular-32.pf2 to grub/fonts/ on the EFI partition and loading it with an additional loadfont line resolves the issue. (ascii.pf2 is not missing). It may be that how grub is being rebuilt after adding the theme that it is not adding the font to the conf.
Sidenote: for anyone who wants to try out fallout-grub-theme, it works great, just a couple tips: the included font is too large (32). To address this simply build a new font, follow the above (until there is an alternative), and update the theme.txt.
Font source: https://www.download-free-fonts.com/deta...-excelsior
How to convert a font for use with grub: http://wiki.rosalab.ru/en/index.php/Grub...tion_guide
I built one for normal menu and one for when highlighted:
Code:
grub-mkfont -o fixedsys-ligatures.pf2 -s 16 fixedsys-ligatures.ttf
grub-mkfont -o fixedsys-ligatures_bold.pf2 -s 16 -b fixedsys-ligatures.ttf
I made did some other small tweaks that I can share if anyone is interested.