File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # grub-mkfont
2+
3+ > Convert common font file formats into the PF2 format used by GRUB.
4+ > More information: < https://manned.org/grub-mkfont > .
5+
6+ - Convert a font to PF2:
7+
8+ ` grub-mkfont {{[-o|--output]}} {{path/to/output.pf2}} {{path/to/font.ttf}} `
9+
10+ - Convert a font at a specific size:
11+
12+ ` grub-mkfont {{[-o|--output]}} {{path/to/output.pf2}} {{[-s|--size]}} {{24}} {{path/to/font.ttf}} `
13+
14+ - Convert only characters in specific Unicode ranges:
15+
16+ ` grub-mkfont {{[-o|--output]}} {{path/to/output.pf2}} {{[-r|--range]}} {{0x20-0x7E,0xA0-0xFF}} {{path/to/font.ttf}} `
17+
18+ - Set the output font family name:
19+
20+ ` grub-mkfont {{[-o|--output]}} {{path/to/output.pf2}} {{[-n|--name]}} "{{font_family_name}}" {{path/to/font.ttf}} `
21+
22+ - Convert a font to bold while forcing automatic hinting:
23+
24+ ` grub-mkfont {{[-o|--output]}} {{path/to/output.pf2}} {{[-b|--bold]}} {{[-a|--force-autohint]}} {{path/to/font.ttf}} `
25+
26+ - Disable hinting and ignore embedded bitmap strikes:
27+
28+ ` grub-mkfont {{[-o|--output]}} {{path/to/output.pf2}} --no-hinting --no-bitmap {{path/to/font.ttf}} `
You can’t perform that action at this time.
0 commit comments