No box characters after changing the default Grub font

LasseValentini

I've been able to change the default font of Grub, by using

grub-mkfont -s 16 -o /boot/grub/grubfont.pf2 font.tty

and then adding the following line to /etc/default/grub:

GRUB_FONT=/boot/grub/grubfont.pf2

And of course

sudo update-grub

And the new font did show up and everything (remember to chose a monospaced font). But, the "box" characters (around the entries) are never displayed correctly. I guess most fonts simply don't have that character set. Is there any way that I can add these characters? Maybe even copy them from the default unicode.pf2 font? If this is not really possible, do you know of any fonts that have got these characters?

Update:

I have tried a lot of different things, such as converting from ttf to bdf and then to pf2, and I have tried converting only the ascii characters with the option --range=0x0-0x7f, but none of them seemed to make it work perfectly. I have a feeling that it is because I'm generating a larger font than the default, and the default glyphs therefore cannot be used.

I will try to see if I can get it to work with a smaller font size, though this were one of the reasons I wanted to change the font.

sladen

In theory grub-mkfont allows passing multiple fonts. In this case if you can pass a link to Unifont or another font with wider coverage at the same time. The produced Grub font will be a combination of the coverage of both input fonts.

Note: a recent performance improvement to the Grub boot-time font loader means that the glyphs in a Grub font file must be in a specific ascending order, but unfortunately the change was not made to the grub-mkfont utility at the same time! This is now a bug:

  • Bug #729470 "grub-mkfont outputs fonts that grub cannot use (font characters not in ascending order: 0 <= 0)"

BTW, if you're interested, this bug was discovered because of experiments with investigating use of the Ubuntu Font Family in-development Ubuntu Mono font in the Grub boot menus and hitting exactly the same problem that you've just hit!

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Ubuntu changing default audio output after suspend

分類Dev

Boot menu disappear after changing default OS

分類Dev

Skype font size too big after changing it on HiDPI display

分類Dev

How to fix missing characters from font after awakening from suspend?

分類Dev

Changing Table font in CSS

分類Dev

changing UITableViewCell text font

分類Dev

Simple font not changing

分類Dev

Changing font in console application to Raster Font

分類Dev

Default custom font

分類Dev

Changing Font For Entire App In Android

分類Dev

Ubuntu ruby version keeps changing even after specifying default version in rvm

分類Dev

Font corruption: lines through characters

分類Dev

/ usr / share / grub / default / grubと/ etc / default / grubの違いは?

分類Dev

/ usr / share / grub / default / grubと/ etc / default / grubの違いは?

分類Dev

Why is this text changing characters in Yosemite?

分類Dev

/ usr / sbin / grub-mkconfig:1:/ etc / default / grub:If:not found

分類Dev

GRUB_CMDLINE_LINUX_DEFAULTとGRUB_CMDLINE_LINUX

分類Dev

Ubuntu Install crashes after Grub

分類Dev

How to set default font for NSAttributedString

分類Dev

Why is the default font weight 400?

分類Dev

Changing Default Button Highlighting WPF

分類Dev

Changing default printer in chrome by website

分類Dev

Changing a default request header for HttpClient

分類Dev

changing the default keybindings of the Ace editor

分類Dev

Overriding Windows boot loader with GRUB as default

分類Dev

Changing font colors of rows and columns with checkboxes

分類Dev

Changing MathJax's font size on Anki

分類Dev

PHP FPDF changing font size in specific are only

分類Dev

CSS- Changing the width of a search box

Related 関連記事

ホットタグ

アーカイブ