grub-mkfont
Convert common font file formats into the PF2 format used by GRUB. tldr-pages
On Linux
Linux
Convert a font to PF2
grub-mkfont --output path/to/output.pf2 path/to/font.ttfIdentifyConvert a font at a specific size
grub-mkfont --output path/to/output.pf2 --size 24 path/to/font.ttfIdentifyConvert only characters in specific Unicode ranges
grub-mkfont --output path/to/output.pf2 --range 0x20-0x7E,0xA0-0xFF path/to/font.ttfIdentifySet the output font family name
grub-mkfont --output path/to/output.pf2 --name "font_family_name" path/to/font.ttfIdentifyConvert a font to bold while forcing automatic hinting
grub-mkfont --output path/to/output.pf2 --bold --force-autohint path/to/font.ttfIdentifyDisable hinting and ignore embedded bitmap strikes
grub-mkfont --output path/to/output.pf2 --no-hinting --no-bitmap path/to/font.ttfIdentify