Bug 29838 - After the choice screen, grub displays 2 lines with bad font
Summary: After the choice screen, grub displays 2 lines with bad font
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Martin Whitaker
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-02 16:03 CET by papoteur
Modified: 2022-01-08 19:27 CET (History)
3 users (show)

See Also:
Source RPM: grub2
CVE:
Status comment:


Attachments
The 2 lines (14.79 KB, image/jpeg)
2022-01-02 16:04 CET, papoteur
Details

Description papoteur 2022-01-02 16:03:52 CET
The lines displayed are:
Chargement de Linux 5.15.12-desktop-2.mga9
Chargement du disque mémoire initial.

This is in Virtualbox.

It seems that the font is with constant spacing, but that the "i" is set at links.
See screenshot in next message.


Version-Release number of selected component (if applicable):
grub2-2.06-8.mga9
Comment 1 papoteur 2022-01-02 16:04:49 CET
Created attachment 13073 [details]
The 2 lines
Comment 2 Morgan Leijström 2022-01-02 21:16:52 CET
Yes the "i" seem to aligned left within its character space.

Also the narrow characters usually in monospace fonts are widened by horisobntal features, like a base line and "shoulders".

So I guess wrong typeface is used.

CC: (none) => fri

Comment 3 Lewis Smith 2022-01-03 20:50:08 CET
Yes, the screenshot says it all.

Assigning to tv who is the current grub2 maintainer.

Assignee: bugsquad => thierry.vignaud

Comment 4 Thierry Vignaud 2022-01-04 18:30:32 CET
It might be a bug with either unifont or with the Mageia theme managed by Martin

CC: (none) => mageia

Comment 5 Martin Whitaker 2022-01-04 19:10:41 CET
That's the MageiaLogo font. It's a proportional font. That may just be the way GRUB renders it. Is it any better if you install and use grub2-mageia-theme-dejavu?
Thierry Vignaud 2022-01-05 10:45:34 CET

Source RPM: (none) => grub2-theme-mageia
Assignee: thierry.vignaud => mageia

Martin Whitaker 2022-01-05 14:03:56 CET

Keywords: (none) => NEEDINFO

Comment 6 papoteur 2022-01-08 09:37:44 CET
Hello Martin,
I installed grub2-mageia-theme-dejavu instead of grub2-mageia-theme.
The first reboot ended with an error reported by Virtualbox. I didn't catch it.
After a second reboot, the Grub screen has a different look, what is surely expected.
However, after selected one entry, nothing more happens :/
Comment 7 Martin Whitaker 2022-01-08 10:12:59 CET
Hello Papoteur,
That's unexpected!
Can you tell me how to reproduce the original fault, i.e. what you installed, how you have configured the VirtualBox display, what's in /etc/default/grub. I never see any messages from GRUB after selecting a menu entry - it just shows a black box then switches directly to the kernel output and plymouth splash screen.
Comment 8 papoteur 2022-01-08 10:44:01 CET
Hi Martin,
This an old image, upgraded probably from Mageia 6, even if I'm not sure of that.
Virtualbox uses VMSVGA as graphical controller without 3D acceleration, with 128M memory. It uses 2 CPU, 2Gb on 8Gb, Chipset PIX3, with IO-APIC enabled, without EFI.

cat /mnt/etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="splash quiet noiswmd audit=0"
GRUB_DEFAULT=saved
GRUB_DISABLE_OS_PROBER=false
GRUB_DISABLE_RECOVERY=false
GRUB_DISABLE_SUBMENU=n
GRUB_DISTRIBUTOR=Mageia
GRUB_ENABLE_CRYPTODISK=y
GRUB_GFXMODE=1600x900x32
GRUB_GFXPAYLOAD_LINUX=auto
GRUB_SAVEDEFAULT=true
GRUB_TERMINAL_OUTPUT=gfxterm
GRUB_TIMEOUT=10
GRUB_THEME=/boot/grub2/themes/mageia-dejavu/theme.txt

Keywords: NEEDINFO => (none)

Comment 9 Martin Whitaker 2022-01-08 13:07:44 CET
I couldn't recreate the problem you see - even with VirtualBox capped to 5% CPU use, I only see a black rectangle until the Linux kernel takes over the display. However, I could see the problem when I tried to edit the boot command line.

This was caused by Thierry updating the very old version of the unifont font file used by GRUB. The old version identified the font as "Unknown Regular 16". The new version more sensibly identifies it as "Unifont Regular 16". The terminal-font setting in the theme configuration file was still using the old name, and GRUB was falling back to using the MageiaLogo font instead.

The original problem should be fixed in grub2-mageia-theme-2.06-10. Don't know what's going on with grub2-mageia-theme-dejavu, although it will need the same fix too.

Source RPM: grub2-theme-mageia => grub2

Comment 10 papoteur 2022-01-08 15:51:11 CET
Installed grub2-theme-mageia.
The installation rebuild grub configuration.
Problem solved !
Thus there is still grub2-theme-mageia-dejavu.
Comment 11 Martin Whitaker 2022-01-08 15:59:28 CET
I've made the same change in grub2-theme-mageia-dejavu-1.0-9. That seemed to fix the boot hang when I tested it locally.

CC'ing Barry, who is the registered maintainer of that package.

CC: (none) => zen25000

Comment 12 papoteur 2022-01-08 19:27:09 CET
Tested grub2-theme-mageia-dejavu-1.0-9 too.
It boots fine.
Thus closing.
Thanks Martin.

Resolution: (none) => FIXED
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.