Skip to contentSkip to conversation

Altering the font size

DISCUSSION Phillip Susi 2 participants 4 messages Dec 18, 2010 – Dec 19, 2010

lore
Share & tools
lore
#0 lore raw

When using higher resolutions in gfxterm, the default font is a bit small. It looks like the default size grub-mkfont uses is 16, so I tried rebuilding my own larger version of unicode.pf2 with --size=32. It makes no difference. The output file is not any larger and when grub loads it at boot time it looks exactly the same. I also tried --size=64. I used /usr/share/fonts/X11/misc/unifont.pcf.gz as the grub wiki suggests for the source.

#1 lore raw
Quoted 7 lines · Phillip Susi

When using higher resolutions in gfxterm, the default font is a bit small. It looks like the default size grub-mkfont uses is 16, so I tried rebuilding my own larger version of unicode.pf2 with --size=32. It makes no difference. The output file is not any larger and when grub loads it at boot time it looks exactly the same. I also tried --size=64. I used /usr/share/fonts/X11/misc/unifont.pcf.gz as the grub wiki suggests for the source.

The only problem on GRUB side was ignoring errors from FT_Set_Pixel_Sizes. The underlying problem is that freetype is unable to scale bitmap fonts like unifont. You can either take the issue to freetype devs or use TTF fonts (TTF font of unifont is available)

Quoted 6 lines

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
#2 lore raw
Quoted 4 lines · Vladimir 'φ-coder/phcoder' Serbinenko

The only problem on GRUB side was ignoring errors from FT_Set_Pixel_Sizes. The underlying problem is that freetype is unable to scale bitmap fonts like unifont. You can either take the issue to freetype devs or use TTF fonts (TTF font of unifont is available)

That makes sense. I tried using a ttf: /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-R.tff and get a bunch of unknown gsub feature errors for sups, tnum, ss01, sinf, salt, pnum, ordn, numr, frac, locl, dnom, case, and calt fetures.

#3 lore raw
Quoted 11 lines · Phillip Susi
Quoted 4 lines · Vladimir 'φ-coder/phcoder' Serbinenko

The only problem on GRUB side was ignoring errors from FT_Set_Pixel_Sizes. The underlying problem is that freetype is unable to scale bitmap fonts like unifont. You can either take the issue to freetype devs or use TTF fonts (TTF font of unifont is available)

That makes sense. I tried using a ttf:
/usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-R.tff and get a bunch of unknown gsub feature errors for sups, tnum, ss01, sinf, salt, pnum, ordn, numr, frac, locl, dnom, case, and calt fetures.

They are warnings, not errors

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko