You are not logged in.

#1 2025-07-16 15:21:56

Pedro Marinho
Member
Registered: 2025-06-07
Posts: 8

[SOLVED] GRUB Font theme only accepts one font

For some reason i cant seem to be able two use two different fonts in my theme. I have both files of the pf2 in the main folder of my theme. For some reason it only uses the Iosevka Term Etoile 18 for all the text.
What might i be missing ?

# Terminal Options

terminal-box: "inbox_*.png"
terminal-font: "Iosevka Term Etoile 18"
terminal-left: "18%+4"
terminal-top: "21%+4"
terminal-width: "63%+11"
terminal-height: "63%+8"
terminal-border: "20"

# Boot Menu
+ boot_menu {
    left = 39%+6
    top = 60%

    # Change width depending on the biggest entry
    width = 410-50

    # Formula: (N-1)*item_padding + N*item_height + 2*item_padding = total_height 
    # With N being the number of entries
    height = 304
    
    item_font = "AGaramond-Regular32"
    item_color = "#ffffff"
    selected_item_color = "#dec490"

    item_height = 46
    item_padding = 18
    item_spacing = 28
 
    icon_width = 52
    icon_height = 52
    item_icon_space = 8
    

    selected_item_pixmap_style = "select_*.png"

    scrollbar = false
}

My default/grub file

# GRUB boot loader configuration

GRUB_DEFAULT=0
GRUB_TIMEOUT=30
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet nvidia.NVreg_PreserveVideoMemoryAllocations=1 nvidia-drm.modeset=1"
GRUB_CMDLINE_LINUX=""

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y

# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE=menu

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `videoinfo'
GRUB_GFXMODE=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
GRUB_THEME="/boot/grub/themes/darksouls/theme.txt"


# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT=true

# Uncomment to disable submenus in boot menu
#GRUB_DISABLE_SUBMENU=y

# Probing for other operating systems is disabled for security reasons. Read
# documentation on GRUB_DISABLE_OS_PROBER, if still want to enable this
# functionality install os-prober and uncomment to detect and include other
# operating systems.
GRUB_DISABLE_OS_PROBER=true

Last edited by Pedro Marinho (2025-07-25 21:52:31)

Offline

#2 2025-07-16 18:26:05

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,277

Re: [SOLVED] GRUB Font theme only accepts one font

Please use [code][/code] tags. Edit your post in this regard.

  item_font = "AGaramond-Regular32"

If this is literal, I suppose you're missing a blank?
"AGaramond-Regular 32"

Offline

#3 2025-07-17 10:28:53

Pedro Marinho
Member
Registered: 2025-06-07
Posts: 8

Re: [SOLVED] GRUB Font theme only accepts one font

Ok ive found my issue and its actually that stupid. Basically when generating a font using the command:

grub-mkfont -v -n "Iosevka Term Slab 18" -s 18 -o Iosevka-Term-Slab-18.pf2 IosevkaTermSlab-Regular.ttf

I noticed that it adds, Regular and the size of it. So the name would look like "Iosevka Term Slab 18 Regular 18"

Thanks anyways i got enlithened XD. Btw i will share my grub theme soon, that is a darksouls theme.
If you are interested be on the look out, i will post it on my github.

Offline

Board footer

Powered by FluxBB