bugGNU GRUB - Bugs: bug #36878, Autoloading fonts


You are not allowed to post comments on this tracker with your current authentification level.

bug #36878: Autoloading fonts

Submitted by:  Michael Perlov <perlovka>
Submitted on:  Wed 18 Jul 2012 09:08:44 PM UTC  
Category: ConfigurationSeverity: Minor
Priority: 5 - NormalItem Group: Feature Request
Status: NonePrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: OpenRelease: 
Release: Git masterReproducibility: None
Planned Release: None

Sat 02 May 2015 05:22:21 PM UTC, comment #4:

Interesting, thanks. I'll think about it.

Sebastian Pipping <hartwork>
Sat 02 May 2015 06:32:22 AM UTC, comment #3:

Font pe-loading is implemented by grub-mkconfig, it will generate code to load all fonts from $GRUB_THEME directory. It is static so you need to run grub-mkconfig every time font filenames change or you set different theme.

Font autoloading on demand at runtime is not implemented. Note that you need file name to do it while theme specifies internal font name. So some mapping between two is required. This will likely need extending of theme specification (e.g. fonts.lst in theme directory). Patches are welcome.

Loading all fonts from /boot/grub/fonts is not possible in generally at all. In some cases we have no possibilities to list directory content (like when $prefix points to tftp/http) so we must know exact filename to load.

Andrei Borzenkov <arvidjaar>
Project Member
Sat 02 May 2015 01:40:01 AM UTC, comment #2:


Is there any news in this area?
Barry's comment below sounds like command

set theme=$prefix/themes/theme_name/theme.txt

would auto-load fonts from $prefix/themes/<theme_name>/ .
I cannot confirm that behavior though and I cannot find anything like that in gfxmenu.c either. Barry, is that what you meant?

It would be cool to either have auto-loading or a mean to let the theme.txt specify specific font files to load. With neither, I assume that themes with font specifications hardly ever end up on user screens as the designer intended since the user would have to inspect theme.txt and add custom loadfont commands into his/her grub.cfg.

Am I missing something?

Best, Sebastian

Sebastian Pipping <hartwork>
Sun 10 Feb 2013 01:11:38 PM UTC, comment #1:

I recently spent a day trying to figure out why my theme was failing, until I discovered that fonts in /boot/grub2/fonts are not seen.

After moving them to the /boot/grub2/themes/theme_name directory it works.

Seems very odd that the fonts directory is not searched automaically for fonts. :\

Barry Jackson <barjac>
Wed 18 Jul 2012 09:08:44 PM UTC, original submission:

It would be nice if GRUB would be able automatically load fonts from /boot/grub/fonts/ directory.
Theme management will be more simple and handy.

Michael Perlov <perlovka>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by arvidjaar (Posted a comment)
  • -unavailable- added by hartwork (Posted a comment)
  • -unavailable- added by barjac (Posted a comment)
  • -unavailable- added by perlovka (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 02 May 2015 06:32:22 AM UTCarvidjaarReleaseBazaar - trunk=>Git master
    Sat 02 May 2015 06:32:21 AM UTCarvidjaarSeverityMajor=>Minor

    Back to the top

    Powered by Savane 3.1-cleanup