Linux Commands Examples

A great documentation place for Linux commands


make GRUB font files

see also : grub-mkconfig


grub-mkfont [OPTION...] [OPTIONS] FONT_FILES

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


echo "Creating Grub menu font: $font"
$ROOT/$TOOLCHAIN/bin/grub-mkfont \
-o $font \
### Collect needed files in .install dir


Convert common font file formats into PF2

save only the ASCII bitmaps

-a, --force-autohint

force autohint

-b, --bold

convert to bold font

-c, --asce=NUM

set font ascent

-d, --desc=NUM

set font descent

-i, --index=NUM

select face index

-n, --name=NAME

set font family name


ignore bitmap strikes when loading


disable hinting

-o, --output=FILE

save output in FILE [required]

-r, --range=FROM-TO[,FROM-TO]

set font range

-s, --size=SIZE

set font size

-v, --verbose

print verbose messages.


create width summary file

-?, --help

give this help list


give a short usage message

-V, --version

print program version

Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options.

reporting bugs

Report bugs to <bug-grub[:at:]gnu[:dot:]org>.

see also


The full documentation for grub-mkfont is maintained as a Texinfo manual. If the info and grub-mkfont programs are properly installed at your site, the command

info grub-mkfont

should give you access to the complete manual.

How can this site be more helpful to YOU ?

give  feedback