LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

grub-mkfont

convert fonts to GRUB PF2 format

TLDR

Convert font to GRUB format
$ grub-mkfont -o [output.pf2] [input.ttf]
copy
Specify font size
$ grub-mkfont -s [16] -o [font16.pf2] [input.ttf]
copy
Include specific characters
$ grub-mkfont --range=[0x0-0xff] -o [font.pf2] [input.ttf]
copy
Verbose conversion
$ grub-mkfont -v -o [output.pf2] [input.ttf]
copy

SYNOPSIS

grub-mkfont [options] font-file

DESCRIPTION

grub-mkfont converts fonts to GRUB's PF2 bitmap format, enabling custom fonts in the GRUB boot menu. The tool accepts TrueType, OpenType, and other font formats.It can generate fonts at specific sizes and with specific character ranges, allowing fine control over which glyphs are included in the output.

PARAMETERS

FONT-FILE

Input font (TTF, OTF, PF2).
-o, --output FILE
Output PF2 file.
-s, --size N
Font size in pixels.
-i, --index N
Face index for TTC.
-n, --name NAME
Set font family name.
-b, --bold
Convert to a bold font.
-r, --range FROM-TO
Unicode range(s) to include (comma-separated).
-v, --verbose
Verbose output.
--help
Display help information.

INSTALL

sudo apt install grub-common
copy
sudo apk add grub-mkfont
copy

CAVEATS

Part of GRUB package. Larger fonts increase boot time. Limited to bitmap conversion.

HISTORY

grub-mkfont was developed as part of GNU GRUB 2 to support graphical boot menus with custom fonts.

SEE ALSO

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid