On 12/20/18 5:39 PM, home user via users wrote:
> (Rick said)
>> The font(s) used by grub2 shouldbe located in /boot/grub2/fonts
>> ...
>> FONT_FILES in the man page just represents where the source font
>> file is located. For example, to convert the FreeSans.ttf font
>> (which is located in /usr/share/fonts/gnu-free) into a 24-point
>> font grub2 can grok called "newfont.pf2":
>>
>> grub2-mkfont -o /tmp/newfont.pf2 --size=24 \
>> /usr/share/fonts/gnu-free/FreeSans.ttf
>>
>> Then move/copy the file created to /boot/grub2/fonts:
>>
>> cp /tmp/newfont.pf2 /boot/grub2/fonts
>>
>> And put the name of the file into the GRUB_FONT option:
>> GRUB_FONT=newfont.pf2
>>
>> That oughta do it.
> 
> Yep.  That did it.
> 
> Should anyone else choose to try Rick's suggestions, I suggest a minor
> change: Name the grub font file the same as the source font file, but
> with the size appended:
> 
> 1. grub2-mkfont -o /tmp/FreeSans24.pf2 --size=24
> /usr/share/fonts/gnu-free/FreeSans.ttf
> 
> 2. cp /tmp/FreeSans24.pf2 /boot/grub2/fonts
> 
> 3. put the name of the file into the GRUB_FONT option:
> GRUB_FONT=FreeSans24.pf2
> 
> 4. do the grub2-mkconfig -o /etc/grub2.cfg
> 
> This way, the name of the font file documents what font and size is
> being used.
> 
> Also, I learned the hard way: the size (here, 24) has a different
> meaning (units) than the font size in LibreOffice.  I actually tried 16
> first.  That's nice and big in LibreOffice, but it was tiny in the grub
> menu.
> 
> Thank-you, Rick.

You're quite welcome.

> If, after a few days, the grub menu still looks good, I'll promote this
> thread from CLOSED to SOLVED.

Yeah, good idea!

Note that "sizes" in most word processors or printing-related things are
given in points (12 points to the inch, so 24 points is 2 inches or
about 5 cm high). For display-oriented things such as grub or X or
Wayland, sizes generally are in pixels (which vary depending on the
resolution of the monitor), so 24 is only 24 _pixels_ high.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ri...@alldigital.com -
- AIM/Skype: therps2        ICQ: 226437340           Yahoo: origrps2 -
-                                                                    -
-         I don't get mad and I don't get even.  I get ahead!        -
----------------------------------------------------------------------
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to