Fonts

Text extract from Sample_MyE2B.cfg

 
# --- CHARACTER SET FONTS ----
 
# Font settings - specify alternate unifont hex file which is loaded after the E2B unifont file is loaded - many 16-pixel fonts are in /_ISO/docs/Fonts/ folder
# Special non-ANSI characters are not included, so only suitable for English language really
###set FONT=()/_ISO/docs/Fonts/terminus.uni.gz
 
# Use Default BIOS Font (tends to be thick+bold for standard ASCII characters)
###set BIOSFONT=1
 
# Do not load unifont fonts - if NOUNIFONT=1 then the standard E2B unifont font file is not loaded (to save time) but only ANSII characters will be displayed
### set NOUNIFONT=1
 
# LARGE FONTS - FONTH specifies the font height (default = 16 = unifont)
# If you set FONTH=24 E2B will use a default set of 24-pixel high fonts (grub4dos 0.4.6a only)
###set FONTH=24
# You can also load your own font by using the FONT parameter - if FONTH=24 then the hex font file must must be 24-high format 
# If 24 pixel high: 1024x768=85 chars x 32 lines, 800x600=66x25 lines
# 24 pixel high fonts: yxt.f24=trad Chinese, ltxxx.f24, terminal.f24, developer.f24, X11.f24 - some fonts may not work in some languages
###set FONT=/_ISO/docs/Fonts/developer.f24
# --- CHARACTER SET FONTS ----
 
# Font settings - specify alternate unifont hex file which is loaded after the E2B unifont file is loaded - many 16-pixel fonts are in /_ISO/docs/Fonts/ folder
# Special non-ANSI characters are not included, so only suitable for English language really
###set FONT=()/_ISO/docs/Fonts/terminus.uni.gz
 
# Use Default BIOS Font (tends to be thick+bold for standard ASCII characters)
###set BIOSFONT=1
 
# Do not load unifont fonts - if NOUNIFONT=1 then the standard E2B unifont font file is not loaded (to save time) but only ANSII characters will be displayed
### set NOUNIFONT=1
 
# LARGE FONTS - FONTH specifies the font height (default = 16 = unifont)
# If you set FONTH=24 E2B will use a default set of 24-pixel high fonts (grub4dos 0.4.6a only)
###set FONTH=24
# You can also load your own font by using the FONT parameter - if FONTH=24 then the hex font file must must be 24-high format 
# If 24 pixel high: 1024x768=85 chars x 32 lines, 800x600=66x25 lines
# 24 pixel high fonts: yxt.f24=trad Chinese, ltxxx.f24, terminal.f24, developer.f24, X11.f24 - some fonts may not work in some languages
###set FONT=/_ISO/docs/Fonts/developer.f24
 
 

16-pixel high fonts

By default, grub4dos will use the BIOS fonts. These contain the BIOS ASCII character set from 0-255, but some characters may differ from those expected.
 
E2B loads a large unifont hex file (unifont.hex.gz). The unifont.hex.gz file contains hundreds of 16-pixel high glyphs for many different languages and is approx. 1MB in size (uncompressed). If your menu does not use these (i.e. you use a 'Latin/Roman' character set for your language) then you can set NOUNIFONT=1 in MyE2B.cfg and it won't load the large unifont.hex.gz file and thus will save a second or two in boot time.
 
Use set BIOSFONT=1 in your MyE2B.cfg file to just use the BIOS font (basic English characters only).

To include a different font, simply specify the path and filename in your MyE2B.cfg file, e.g.
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.
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, then E2B will load the BIOS fonts for the 0x20-0x7F characters and then it will load the specified user font (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

or you can copy the \_ISO\docs\Fonts\$FontTest.mnu file to the \_ISO\MAINMENU folder test any 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.

If your chosen language requires special non-ASCII characters, use the default unifont file only.

See also blog page.

 

Large Fonts

E2B v.1.78+ supports 24-pixel high large fonts, animation and stamps (see YouTube demo). 

Use set FONTH=24 to use large fonts.

However, the default 24-pixel high font file does not contain as many glyphs as the 16-pixel high version (chinese+ASCII), so some languages are not supported.

Copy the \_ISO\docs\Sample mnu files\E2B Menus\Change_Font24.mnu file to the \ISO\MAINMENU folder.

One screen of 24-pixel high characters:

  • 1024x768 = 85 characters by 32 lines
  • 800x600 = 66 chars by 25 lines

You will need to change the menu box dimensions to fit.

See also \_ISO\docs\Templates\LargeFont and Animate config files (copy to \_ISO folder).

Some alternative 24-pixel high font files can be loaded using set FONT=, 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.

See also blog page.

 

GFXBoot Menus

Grub4dos fonts are not used by GFXBoot menu systems as they use their own font.
 
You can compile your own GFXBoot 'message' menu and then load it using MyE2B.cfg.