bugGNU GRUB - Bugs: bug #36878, Autoloading fonts


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

bug #36878: Autoloading fonts

Submitter:  Michael Perlov <perlovka>
Submitted:  Wed 18 Jul 2012 09:08:44 PM UTC
Category:  Configuration Severity:  Minor
Priority:  5 - Normal Item Group:  Feature Request
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Release:  Git master
Release:  Reproducibility:  None
Planned Release:  2.03+

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>
Group 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>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.


    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-03-02 phcoder Planned ReleaseNone 2.03+
    2015-05-02 arvidjaar ReleaseBazaar - trunk Git master
    2015-05-02 arvidjaar SeverityMajor Minor

    Back to the top

    Powered by Savane 3.13-e652.
    Corresponding source code