shvchk / poly-dark

Poly dark GRUB theme
https://opendesktop.org/p/1230780
MIT License
171 stars 37 forks source link

High resolution configuration #1

Open acamilotti opened 6 years ago

acamilotti commented 6 years ago

On my UHD screen on a laptop the letter and icons are too small, can you share a config file for high resolution screens?

shvchk commented 6 years ago

That will probably require icons upscaling, which might not turn out very pretty, but I'll look into it when I have some free time.

acamilotti commented 6 years ago

No problem, thanks for replying.

ViBE-HU commented 1 year ago

if anyone is still interested i did a try with the original font. gladly i found it here. the exact font what grub use is this:

https://unifoundry.com/pub/unifont/unifont-15.0.06/font-builds/unifont-15.0.06.ttf (The Standard Unifont TTF)

i did a workaround to get bigger fonts on my 14 inch fullhd dell display cause the original 18 size was a pain. so after i got the fonts i have to convert it cause grub use an exact format. i did like this:

sudo grub-mkfont --output=/boot/grub/fonts/unifont22.pf2 --size=22 /home/user/Downloads/unifont-15.0.06.ttf

--output defines the target where to save the converted fonts. i used the general grub directory cause i wanted to overwrite also the original grub fonts. in this case we must add a line to the grub file in a new line: GRUB_FONT=/boot/grub/fonts/unifont22.pf2

if i want to use the created font for an exact theme then i need to save it to the theme's directory. for example: /boot/grub/themes/poly-dark/. in this case i have to remove the original .pf2 fonts file or rename it to let grub use the freshly generated one.

--size defines the fonts size. as far as i understand poly dark use 16 by default. in my case 22 or 24 are ideal and still not ugly.

the last part of the command is the source file. it's on you where do you download it. now if everything is done i have to regenerate grub by the sudo update-grub command. then reboot and have fun.