06-17-2024, 05:40 PM
In windows, you download grub-mkfont.7z by link "https://m.blog.naver.com/a1jyh/221395655744"
Unpacking, for example - C:\Users\alex\grub-mkfont
You copy the font here, for example - Terminus-Bold.ttf
Turn on the command line and go to the directory:
C:\Users\alex >cd grub-mkfont
Converting
C:\Users\alex\grub-mkfont>grub-mkfont.exe "Terminus-Bold.ttf" -o "for_ventoy.pf2" -s 8 -v
where - Terminus-Bold.ttf is the font from which to convert
-o for_ventoy.pf2 - result file.
-s 8 - font size 8
-v - provides detailed information about the conversion result: font name, height and width, number of characters
Full list of options:
-a, --force-autohint insert auto-tag
-b, --bold convert to bold
-c, --asce=NUM set ascent font elevation
-d, --desc=NUM set the font descent
-i, --index=NUM select the index of the face
-n, --name=NAME set the font family name
--no-bitmap without bitmap ignore bitmap strikes when loading ignore bitmap strikes when loading
--no-hinting disable hint disable hinting
-o, --output=FILE protect output to FILE [required]
-r, --range=FROM-TO[,FROM-TO] set font range range
-s, --size=SIZE set font size
-v, --verbose print detailed messages
-?, --help give this list of help
--usage give a short usage message
-V, --version print the version of the program
Regarding the correction of the pf2 font, see the topic "Font - Editor pf2"(https://forums.ventoy.net/showthread.php?tid=2888)
Unpacking, for example - C:\Users\alex\grub-mkfont
You copy the font here, for example - Terminus-Bold.ttf
Turn on the command line and go to the directory:
C:\Users\alex >cd grub-mkfont
Converting
C:\Users\alex\grub-mkfont>grub-mkfont.exe "Terminus-Bold.ttf" -o "for_ventoy.pf2" -s 8 -v
where - Terminus-Bold.ttf is the font from which to convert
-o for_ventoy.pf2 - result file.
-s 8 - font size 8
-v - provides detailed information about the conversion result: font name, height and width, number of characters
Full list of options:
-a, --force-autohint insert auto-tag
-b, --bold convert to bold
-c, --asce=NUM set ascent font elevation
-d, --desc=NUM set the font descent
-i, --index=NUM select the index of the face
-n, --name=NAME set the font family name
--no-bitmap without bitmap ignore bitmap strikes when loading ignore bitmap strikes when loading
--no-hinting disable hint disable hinting
-o, --output=FILE protect output to FILE [required]
-r, --range=FROM-TO[,FROM-TO] set font range range
-s, --size=SIZE set font size
-v, --verbose print detailed messages
-?, --help give this list of help
--usage give a short usage message
-V, --version print the version of the program
Regarding the correction of the pf2 font, see the topic "Font - Editor pf2"(https://forums.ventoy.net/showthread.php?tid=2888)