Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom theme fonts
#3
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:

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.
Reply


Messages In This Thread
Custom theme fonts - by PlumberOfSound - 05-26-2020, 02:10 AM
RE: Custom theme fonts - by awengers44 - 05-26-2020, 03:16 AM
RE: Custom theme fonts - by PlumberOfSound - 05-26-2020, 03:33 PM
RE: Custom theme fonts - by scaramonga - 05-28-2020, 06:26 PM
RE: Custom theme fonts - by thomas - 06-22-2020, 12:47 PM
RE: Custom theme fonts - by longpanda - 06-22-2020, 03:19 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)