Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small font size #45

Closed
ChiefArug opened this issue Dec 1, 2023 · 3 comments
Closed

Small font size #45

ChiefArug opened this issue Dec 1, 2023 · 3 comments

Comments

@ChiefArug
Copy link

ChiefArug commented Dec 1, 2023

All text that isn't part of an image is very small.
IMG20231201195657.jpg
Screen Resolution is 1920x1080

I have tried using grub-mkfont to make a new .pf2 font file from the minecraft regular otf, but with the --size option set to bigger (tried 60 and 240), then putting that into the theme folder and changing the various mentions of Minecraft Regular 30 to Minecraft Regular 60 (or 240 for that) in theme.txt, but that didn't produce a noticeable effect.

I am using Grub Customizer to change the names of options, but this was a problem since before I started using that.

@Lxtharia
Copy link
Owner

Lxtharia commented Dec 1, 2023

Hi!
Yes, this looks like the font isn't even loaded (this looks like some default font)

When grub-mkconfig is called, it will find the theme you chose in /etc/default/grub and then add specific loadfont lines into /boot/grub/grub.cfg that will load all the needed fonts when grub starts. So take a look if the path written in there mismatches the actual path or if these lines are missing completely.

Hope this helps!

@ChiefArug
Copy link
Author

That did end up being the issue, kind of.
TLDR: Disable Secure Boot

If I opened grubs console on boot and run lsfonts it only came up with the one default unicode font, so it definitely isn't loading the fonts. However in the grub.cfg file it does have loadfont lines for each font including the two new ones I added, and the file paths were indeed correct.
My next thought was maybe the root variable getting messed up somehow, so I opened the console and ran echo ${root}, which worked fine. ls ($root)/boot/grub/themes/ worked as expected to. I then for some random reason tried to run another command I had seen on the grub help page, time. This didn't work, giving me an error that it couldn't load that module due to secure boot (yes I use linux and have secure boot turned on, yes it normally works).

I then went and disabled secure boot and voila, the font loaded perfectly and it looks normal... I don't know why things like the images are allowed to load while the fonts (which are essentially images as well) aren't, but it works now.

Thanks for the debugging help!

@felipetrentin
Copy link

Did anyone find a way to sign the fonts so that GRUB can load them without disabling secure boot?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants