Fonts
Extract from Sample_MyE2B.cfg...
Tip: You can add any number of different *.uni.gz or *.f24 files to a menu folder and select any one of them from the E2B menu (v1.A1+).
Note that if using .f24 fonts, the E2B menu dimensions will need to be changed because less lines are available on the screen.
16-pixel high fonts (standard fonts)
set FONT=()/_ISO/docs/Fonts/sans2.uni.gz
E2B will always load the unifont.hex.gz file first to ensure that non-Latin characters like Chinese glyphs will be displayed correctly (unless NOUNIFONT=1 is specified). Then the other font will be loaded over the top of unifont.hex.gz if you have specified one using the FONT variable.
Note: If you have set BIOSFONT=1 then the BIOS font will be used for characters 0x20-0x7F. If you also specify a FONT to be loaded, the full unifont.hex.gz font will be loaded first, then E2B will load the BIOS fonts for the 0x20-0x7F characters and then it will load the specified user font - if one is specified (which contains characters 0x20-0x7E if you use the E2B font files provided).
\_ISO\docs\Sample mnu files\E2B Menus\Font_Demo.mnu - This menu will add lots of different font choices to the Main menu so you can switch to any font (ASCII codes 32-127 only, so only standard ASCII English characters supported, so they can only be used for English because any special non-English characters will be displayed in the normal unifont font).
There are also other font .mnu files in the Sample mnu Files folder, e.g. Change_Font24.mnu will test large fonts, or you can copy the \_ISO\docs\Fonts\$FontTest.mnu file to the \_ISO\MAINMENU folder test any normal 16-pixel high font with your menu (or add some demo menus using \_ISO\Pimp_my_drive.cmd).
There is also a \_ISO\docs\Sample mnu Files\Change_Font.mnu file - copy this to the \_ISO\MAINMENU folder to test any of the 16-pixel high fonts with your menu.
If your chosen language requires special non-ASCII characters (i.e. non-English languages), use the default unifont file only.
See also blog page.
Large Fonts
E2B v.1.78+ supports 24-pixel high large fonts (see YouTube demo).
Use set FONTH=24 to use the E2B's default large font (sft.f24).
You can also add an additional command to add an additional font subset using set FONT=/_ISO/docs/Fonts/xxxx.f24 (where xxxx is the name of a font file).
Large fonts have a file extension .f24 and there are over ten different alternatives available in the \_ISO\docs\Fonts folder.
However, the default 24-pixel high font file (chinese+ASCII) does not contain as many glyphs as the 16-pixel high version, so some languages are not supported. sft.f24 (default) and yxt.f24 contain more characters, terminal and developer have less then these - the other .f24 font files contain mainly English ASCII characters only.
Tip: copy the \_ISO\docs\Sample mnu files\E2B Menus\Change_Font24.mnu file to the \ISO\MAINMENU folder to experiment.
A screen of 24-pixel high characters has:
- 1024x768 = 85 characters by 32 lines
- 800x600 = 66 characters by 25 lines
You will need to change the menu box dimensions to fit.
The E2B_Editor does not support large fonts.
See also \_ISO\docs\Templates\LargeFont and Animate config files (copy to \_ISO folder).
Note: set CENTREHD=1 may not centre the menu headings correctly unless rstart is set to 2 or more, if you are using a large font.You can use set HEADPOS=2500 to remove all menu headings (in 800x600 mode, or 3200 in 1024x768 mode).
Some alternative 24-pixel high .f24 font files can be loaded using set FONT=xxxxxx.f24, but they only contain a subset of mainly English characters, so if your language requires special non-ASCII characters, only use the default set FONTH=24.
Note: Incorrect setting of the HBTM variable which sets the position of the FOOTER help text can cause the screen to scroll because there are only 25 lines available. Make sure the HBTM variable is correct (e.g. set HBTM=2300).
See also blog page.
Adding more 24-high fonts
If you can find some 24-pixel high fonts in .BDF format, then you can use a Windows script to convert them into the correct format required for grub4dos.
Some '24-dot' BDF fonts can be downloaded here.
Download MAKE-FONT24.zip from the Alternate Downloads Area - Other Files folder.
Unpack it and read the ReadMe files for more help.