Skip to content

Commit 8e4f831

Browse files
88766lawrencespageekttiManagor
authored
grub-mkfont: add page (#23682)
Co-authored-by: Wiktor Perskawiec <wiktor@perskawiec.cc> Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
1 parent ff9a917 commit 8e4f831

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

pages/linux/grub-mkfont.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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}}`

0 commit comments

Comments
 (0)