Ventoy Forums
ventoy fonts - Printable Version

+- Ventoy Forums (https://forums.ventoy.net)
+-- Forum: Ventoy Plugin —— Ventoy 插件 (https://forums.ventoy.net/forumdisplay.php?fid=3)
+--- Forum: Ventoy Plugin Forum (https://forums.ventoy.net/forumdisplay.php?fid=4)
+--- Thread: ventoy fonts (/showthread.php?tid=2403)



ventoy fonts - Omid Khan - 03-15-2023

hi
How can I define a separate font for each theme? Is this possible?

thanks for ur help Heart


RE: ventoy fonts - longpanda - 03-16-2023

You can load some fonts with theme plugin and then use these fonts in your theme.
https://www.ventoy.net/en/plugin_theme.html


RE: ventoy fonts - Omid Khan - 03-16-2023

(03-16-2023, 04:17 AM)longpanda Wrote: You can load some fonts with theme plugin and then use these fonts in your theme.
https://www.ventoy.net/en/plugin_theme.html
thanks
Should the fonts be in .pf2 format? Does Ventoy support .ttf?

If only .pf2 supported, Is there a site where this format can be downloaded from?


RE: ventoy fonts - AlexBryansk - 03-17-2023

Read in
http://wiki.rosalab.ru/en/index.php/Grub2_theme_tutorial
In short:
1. font for grub2 - *pf2
2. You can set your font separately for each theme and any component in the theme file "name theme.txt ":
Ttitle - title-font; boot menu - item font and selected item font; label - font.
If not set here, the default font will be used.
3. adding the font to parameter in the file ventoy.json: the "theme":

"fonts": ["/path/name file.pf2",

Attention! In the second paragraph
, the font name is set. In the third paragraph, the file name. They can
be different. For example, a music file has the name of one song, and when played, another one sounds with everything. Or the file name
is shorter.

4. You can convert a font from ttf to pf2 using the grub2-mkfont utility. Attention! Use only a single-width font.


RE: ventoy fonts - nguyen ha thai trong - 03-17-2023

refer here to convert .ttf to .pf2 font
http://www.pclinuxos.com/forum/index.php?topic=135915.0


RE: ventoy fonts - Omid Khan - 03-17-2023

I would be grateful if someone could convert these fonts to pf2 format in size 14


RE: ventoy fonts - AlexBryansk - 03-17-2023

On the picture:
filename - font name
[attachment=700]

Hold
[attachment=701]