No box characters after changing the default Grub fontHow to make all fonts available in Konsole/Yakuake?How to change the default monospaced font?What is the fallback font in ubuntu?Where's the default Farsi(Persian) font file?How to use Fixedsys in the Gnome Terminal, or wherever monospaced fonts are requiredShow characters from private use area from a specific fontDefault kanji/Japanese font wrong in Ubuntu 14.04, how to change it?Subsetting a font from the command line and turning it into a webfontWhat's the safest way to add glyphs to Ubuntu font?gnome-terminal default font for not supported characters

How to type dʒ symbol (IPA) on Mac?

whey we use polarized capacitor?

Accidentally leaked the solution to an assignment, what to do now? (I'm the prof)

I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine

Is Social Media Science Fiction?

Is it possible to do 50 km distance without any previous training?

Circuitry of TV splitters

Why Is Death Allowed In the Matrix?

How old can references or sources in a thesis be?

Copycat chess is back

What are these boxed doors outside store fronts in New York?

Draw simple lines in Inkscape

Can an x86 CPU running in real mode be considered to be basically an 8086 CPU?

Shell script can be run only with sh command

How do I create uniquely male characters?

How does one intimidate enemies without having the capacity for violence?

How can I fix this gap between bookcases I made?

Why are 150k or 200k jobs considered good when there are 300k+ births a month?

Download, install and reboot computer at night if needed

A Journey Through Space and Time

Why is "Reports" in sentence down without "The"

How is the claim "I am in New York only if I am in America" the same as "If I am in New York, then I am in America?

Motorized valve interfering with button?

Email Account under attack (really) - anything I can do?



No box characters after changing the default Grub font


How to make all fonts available in Konsole/Yakuake?How to change the default monospaced font?What is the fallback font in ubuntu?Where's the default Farsi(Persian) font file?How to use Fixedsys in the Gnome Terminal, or wherever monospaced fonts are requiredShow characters from private use area from a specific fontDefault kanji/Japanese font wrong in Ubuntu 14.04, how to change it?Subsetting a font from the command line and turning it into a webfontWhat's the safest way to add glyphs to Ubuntu font?gnome-terminal default font for not supported characters






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








13















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.










share|improve this question



















  • 1





    Try BURG its very nice and has a lot of themes

    – Extender
    Nov 8 '10 at 11:09











  • But OP wants to change font - not theme GRUB. Irrelevant.

    – WindowsEscapist
    Dec 2 '12 at 0:02


















13















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.










share|improve this question



















  • 1





    Try BURG its very nice and has a lot of themes

    – Extender
    Nov 8 '10 at 11:09











  • But OP wants to change font - not theme GRUB. Irrelevant.

    – WindowsEscapist
    Dec 2 '12 at 0:02














13












13








13


3






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.










share|improve this question
















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.







fonts grub2






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 24 '15 at 17:39









Leif Arne Storset

21315




21315










asked Nov 6 '10 at 23:58









LasseValentiniLasseValentini

1,59411622




1,59411622







  • 1





    Try BURG its very nice and has a lot of themes

    – Extender
    Nov 8 '10 at 11:09











  • But OP wants to change font - not theme GRUB. Irrelevant.

    – WindowsEscapist
    Dec 2 '12 at 0:02













  • 1





    Try BURG its very nice and has a lot of themes

    – Extender
    Nov 8 '10 at 11:09











  • But OP wants to change font - not theme GRUB. Irrelevant.

    – WindowsEscapist
    Dec 2 '12 at 0:02








1




1





Try BURG its very nice and has a lot of themes

– Extender
Nov 8 '10 at 11:09





Try BURG its very nice and has a lot of themes

– Extender
Nov 8 '10 at 11:09













But OP wants to change font - not theme GRUB. Irrelevant.

– WindowsEscapist
Dec 2 '12 at 0:02






But OP wants to change font - not theme GRUB. Irrelevant.

– WindowsEscapist
Dec 2 '12 at 0:02











7 Answers
7






active

oldest

votes


















8














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!






share|improve this answer




















  • 1





    I will let it rest till they get the Ubuntu Mono font loaded into grub - that's what I was after in the first place anyway :) Thanks a lot.

    – LasseValentini
    Jun 23 '11 at 21:02


















9














Basically what you want to do is use the range operator to limit the characters that your new grub font contains. If you don't use the range operator then you're going to get all the glyphs including the erroneous or incorrect box elements from your target font.



For example:



grub-mkfont -s 16 --range=0x0-0x7f -o /boot/grub/grubfont.pf2 font.tty



Will generate a font with only ASCII characters, anything your font doesn't have should decay gracefully to the default font so boxes and arrows should come from the default. Please see this website for further information:



http://grub.enbug.org/gfxterm






share|improve this answer


















  • 1





    That would make sense, but I'm still having the weird glyphs, maybe because the unicode font isn't loaded at all? I will try to set the default font back, and the try this again.

    – LasseValentini
    Nov 11 '10 at 2:08






  • 1





    Perhaps you should load a console font first and then load your ttf ascii only font.

    – Martin Owens -doctormo-
    Nov 11 '10 at 21:04






  • 1





    Have you tried loading multiple fonts? the unicode font /usr/share/grub/unicode.pf2 should contain the box and arrow characters you need. You should be able to load the fonts using loadfont one after another until you get the desired effect.

    – Martin Owens -doctormo-
    Nov 12 '10 at 5:17



















5














IIRC I ran into what you describe when using all glyphs:




(source: xrmb2.net)



Maybe it's an issue with grub-mkfont, maybe it has to do with the font, I don't know. :(



What worked for me:



  1. Using gbdfed to generate the 'bdf' file from a console font (eg. '/usr/share/consolefonts/Lat15-VGA16.psf'): File > Import > Console Font, then File > Save As...

  2. Converting only the ASCII characters with grub-mkfont:

    grub-mkfont --output=out.pf2 --range=0x0-0x7f out.bdf





share|improve this answer




















  • 1





    It seems that my main problem is that I want to use an OpenType font (ttf), and not a font designed for consoles. I've tried the above with a ttf file, but it didn't help on this particular problem. Thanks a lot for a solution to a similar problem though :).

    – LasseValentini
    Nov 7 '10 at 1:12



















3














If you run grub-mkfont with the -v flag it will show you how many glyphs you get. If you get more than a thousand, the border character ought to be in there. Limiting the range will only make things worse. The DejaVuSansMono font displays all the characters correctly and it has over 3000 glyphs in the .pf2. Many other fonts get the arrows right but not the border.






share|improve this answer






























    2














    use a unicode font.. That worked almost fine( such as arialuni.ttf, shows all characters as required).. My problem is with the little bigger character spacing...and that happens with every font I tested.






    share|improve this answer






























      1














      You can get this to display correctly by loading both the default font and the desired font.



      Then, set the font to the desired font.



      When the characters for the box are not found, the regular font which is also loaded will act as a default and the needed characters will be supplied.






      share|improve this answer






























        0














        I realize this thread is ancient, but I was reading it today and came up with another answer not yet provided... so here it is:



        If you're getting odd characters in GRUB after changing fonts, it's because those characters didn't exist in the .ttf file you used to create the .pf2 file.



        The characters used to create the border are:



        • U+2501

        • U+2503

        • U+250F

        • U+2513

        • U+2517

        • U+251B

        The other commonly missing characters from a .ttf file are the arrows which are:



        • U+2191

        • U+2193

        You can use FontForge (open source software) to copy and paste those characters from a .ttf which has the characters included to the .ttf you're trying to use which does not. After generating a new .ttf with FontForge you can use grub-mkfont to create your .pf2 file that has all of the appropriate characters.





        share























          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f11846%2fno-box-characters-after-changing-the-default-grub-font%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          7 Answers
          7






          active

          oldest

          votes








          7 Answers
          7






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          8














          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!






          share|improve this answer




















          • 1





            I will let it rest till they get the Ubuntu Mono font loaded into grub - that's what I was after in the first place anyway :) Thanks a lot.

            – LasseValentini
            Jun 23 '11 at 21:02















          8














          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!






          share|improve this answer




















          • 1





            I will let it rest till they get the Ubuntu Mono font loaded into grub - that's what I was after in the first place anyway :) Thanks a lot.

            – LasseValentini
            Jun 23 '11 at 21:02













          8












          8








          8







          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!






          share|improve this answer















          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!







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 21 '11 at 4:18

























          answered Mar 21 '11 at 4:12









          sladensladen

          5,39612027




          5,39612027







          • 1





            I will let it rest till they get the Ubuntu Mono font loaded into grub - that's what I was after in the first place anyway :) Thanks a lot.

            – LasseValentini
            Jun 23 '11 at 21:02












          • 1





            I will let it rest till they get the Ubuntu Mono font loaded into grub - that's what I was after in the first place anyway :) Thanks a lot.

            – LasseValentini
            Jun 23 '11 at 21:02







          1




          1





          I will let it rest till they get the Ubuntu Mono font loaded into grub - that's what I was after in the first place anyway :) Thanks a lot.

          – LasseValentini
          Jun 23 '11 at 21:02





          I will let it rest till they get the Ubuntu Mono font loaded into grub - that's what I was after in the first place anyway :) Thanks a lot.

          – LasseValentini
          Jun 23 '11 at 21:02













          9














          Basically what you want to do is use the range operator to limit the characters that your new grub font contains. If you don't use the range operator then you're going to get all the glyphs including the erroneous or incorrect box elements from your target font.



          For example:



          grub-mkfont -s 16 --range=0x0-0x7f -o /boot/grub/grubfont.pf2 font.tty



          Will generate a font with only ASCII characters, anything your font doesn't have should decay gracefully to the default font so boxes and arrows should come from the default. Please see this website for further information:



          http://grub.enbug.org/gfxterm






          share|improve this answer


















          • 1





            That would make sense, but I'm still having the weird glyphs, maybe because the unicode font isn't loaded at all? I will try to set the default font back, and the try this again.

            – LasseValentini
            Nov 11 '10 at 2:08






          • 1





            Perhaps you should load a console font first and then load your ttf ascii only font.

            – Martin Owens -doctormo-
            Nov 11 '10 at 21:04






          • 1





            Have you tried loading multiple fonts? the unicode font /usr/share/grub/unicode.pf2 should contain the box and arrow characters you need. You should be able to load the fonts using loadfont one after another until you get the desired effect.

            – Martin Owens -doctormo-
            Nov 12 '10 at 5:17
















          9














          Basically what you want to do is use the range operator to limit the characters that your new grub font contains. If you don't use the range operator then you're going to get all the glyphs including the erroneous or incorrect box elements from your target font.



          For example:



          grub-mkfont -s 16 --range=0x0-0x7f -o /boot/grub/grubfont.pf2 font.tty



          Will generate a font with only ASCII characters, anything your font doesn't have should decay gracefully to the default font so boxes and arrows should come from the default. Please see this website for further information:



          http://grub.enbug.org/gfxterm






          share|improve this answer


















          • 1





            That would make sense, but I'm still having the weird glyphs, maybe because the unicode font isn't loaded at all? I will try to set the default font back, and the try this again.

            – LasseValentini
            Nov 11 '10 at 2:08






          • 1





            Perhaps you should load a console font first and then load your ttf ascii only font.

            – Martin Owens -doctormo-
            Nov 11 '10 at 21:04






          • 1





            Have you tried loading multiple fonts? the unicode font /usr/share/grub/unicode.pf2 should contain the box and arrow characters you need. You should be able to load the fonts using loadfont one after another until you get the desired effect.

            – Martin Owens -doctormo-
            Nov 12 '10 at 5:17














          9












          9








          9







          Basically what you want to do is use the range operator to limit the characters that your new grub font contains. If you don't use the range operator then you're going to get all the glyphs including the erroneous or incorrect box elements from your target font.



          For example:



          grub-mkfont -s 16 --range=0x0-0x7f -o /boot/grub/grubfont.pf2 font.tty



          Will generate a font with only ASCII characters, anything your font doesn't have should decay gracefully to the default font so boxes and arrows should come from the default. Please see this website for further information:



          http://grub.enbug.org/gfxterm






          share|improve this answer













          Basically what you want to do is use the range operator to limit the characters that your new grub font contains. If you don't use the range operator then you're going to get all the glyphs including the erroneous or incorrect box elements from your target font.



          For example:



          grub-mkfont -s 16 --range=0x0-0x7f -o /boot/grub/grubfont.pf2 font.tty



          Will generate a font with only ASCII characters, anything your font doesn't have should decay gracefully to the default font so boxes and arrows should come from the default. Please see this website for further information:



          http://grub.enbug.org/gfxterm







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 8 '10 at 8:56









          Martin Owens -doctormo-Martin Owens -doctormo-

          17.8k45398




          17.8k45398







          • 1





            That would make sense, but I'm still having the weird glyphs, maybe because the unicode font isn't loaded at all? I will try to set the default font back, and the try this again.

            – LasseValentini
            Nov 11 '10 at 2:08






          • 1





            Perhaps you should load a console font first and then load your ttf ascii only font.

            – Martin Owens -doctormo-
            Nov 11 '10 at 21:04






          • 1





            Have you tried loading multiple fonts? the unicode font /usr/share/grub/unicode.pf2 should contain the box and arrow characters you need. You should be able to load the fonts using loadfont one after another until you get the desired effect.

            – Martin Owens -doctormo-
            Nov 12 '10 at 5:17













          • 1





            That would make sense, but I'm still having the weird glyphs, maybe because the unicode font isn't loaded at all? I will try to set the default font back, and the try this again.

            – LasseValentini
            Nov 11 '10 at 2:08






          • 1





            Perhaps you should load a console font first and then load your ttf ascii only font.

            – Martin Owens -doctormo-
            Nov 11 '10 at 21:04






          • 1





            Have you tried loading multiple fonts? the unicode font /usr/share/grub/unicode.pf2 should contain the box and arrow characters you need. You should be able to load the fonts using loadfont one after another until you get the desired effect.

            – Martin Owens -doctormo-
            Nov 12 '10 at 5:17








          1




          1





          That would make sense, but I'm still having the weird glyphs, maybe because the unicode font isn't loaded at all? I will try to set the default font back, and the try this again.

          – LasseValentini
          Nov 11 '10 at 2:08





          That would make sense, but I'm still having the weird glyphs, maybe because the unicode font isn't loaded at all? I will try to set the default font back, and the try this again.

          – LasseValentini
          Nov 11 '10 at 2:08




          1




          1





          Perhaps you should load a console font first and then load your ttf ascii only font.

          – Martin Owens -doctormo-
          Nov 11 '10 at 21:04





          Perhaps you should load a console font first and then load your ttf ascii only font.

          – Martin Owens -doctormo-
          Nov 11 '10 at 21:04




          1




          1





          Have you tried loading multiple fonts? the unicode font /usr/share/grub/unicode.pf2 should contain the box and arrow characters you need. You should be able to load the fonts using loadfont one after another until you get the desired effect.

          – Martin Owens -doctormo-
          Nov 12 '10 at 5:17






          Have you tried loading multiple fonts? the unicode font /usr/share/grub/unicode.pf2 should contain the box and arrow characters you need. You should be able to load the fonts using loadfont one after another until you get the desired effect.

          – Martin Owens -doctormo-
          Nov 12 '10 at 5:17












          5














          IIRC I ran into what you describe when using all glyphs:




          (source: xrmb2.net)



          Maybe it's an issue with grub-mkfont, maybe it has to do with the font, I don't know. :(



          What worked for me:



          1. Using gbdfed to generate the 'bdf' file from a console font (eg. '/usr/share/consolefonts/Lat15-VGA16.psf'): File > Import > Console Font, then File > Save As...

          2. Converting only the ASCII characters with grub-mkfont:

            grub-mkfont --output=out.pf2 --range=0x0-0x7f out.bdf





          share|improve this answer




















          • 1





            It seems that my main problem is that I want to use an OpenType font (ttf), and not a font designed for consoles. I've tried the above with a ttf file, but it didn't help on this particular problem. Thanks a lot for a solution to a similar problem though :).

            – LasseValentini
            Nov 7 '10 at 1:12
















          5














          IIRC I ran into what you describe when using all glyphs:




          (source: xrmb2.net)



          Maybe it's an issue with grub-mkfont, maybe it has to do with the font, I don't know. :(



          What worked for me:



          1. Using gbdfed to generate the 'bdf' file from a console font (eg. '/usr/share/consolefonts/Lat15-VGA16.psf'): File > Import > Console Font, then File > Save As...

          2. Converting only the ASCII characters with grub-mkfont:

            grub-mkfont --output=out.pf2 --range=0x0-0x7f out.bdf





          share|improve this answer




















          • 1





            It seems that my main problem is that I want to use an OpenType font (ttf), and not a font designed for consoles. I've tried the above with a ttf file, but it didn't help on this particular problem. Thanks a lot for a solution to a similar problem though :).

            – LasseValentini
            Nov 7 '10 at 1:12














          5












          5








          5







          IIRC I ran into what you describe when using all glyphs:




          (source: xrmb2.net)



          Maybe it's an issue with grub-mkfont, maybe it has to do with the font, I don't know. :(



          What worked for me:



          1. Using gbdfed to generate the 'bdf' file from a console font (eg. '/usr/share/consolefonts/Lat15-VGA16.psf'): File > Import > Console Font, then File > Save As...

          2. Converting only the ASCII characters with grub-mkfont:

            grub-mkfont --output=out.pf2 --range=0x0-0x7f out.bdf





          share|improve this answer















          IIRC I ran into what you describe when using all glyphs:




          (source: xrmb2.net)



          Maybe it's an issue with grub-mkfont, maybe it has to do with the font, I don't know. :(



          What worked for me:



          1. Using gbdfed to generate the 'bdf' file from a console font (eg. '/usr/share/consolefonts/Lat15-VGA16.psf'): File > Import > Console Font, then File > Save As...

          2. Converting only the ASCII characters with grub-mkfont:

            grub-mkfont --output=out.pf2 --range=0x0-0x7f out.bdf






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Feb 18 at 9:46









          Glorfindel

          3113513




          3113513










          answered Nov 7 '10 at 0:18









          htorquehtorque

          47.8k32176213




          47.8k32176213







          • 1





            It seems that my main problem is that I want to use an OpenType font (ttf), and not a font designed for consoles. I've tried the above with a ttf file, but it didn't help on this particular problem. Thanks a lot for a solution to a similar problem though :).

            – LasseValentini
            Nov 7 '10 at 1:12













          • 1





            It seems that my main problem is that I want to use an OpenType font (ttf), and not a font designed for consoles. I've tried the above with a ttf file, but it didn't help on this particular problem. Thanks a lot for a solution to a similar problem though :).

            – LasseValentini
            Nov 7 '10 at 1:12








          1




          1





          It seems that my main problem is that I want to use an OpenType font (ttf), and not a font designed for consoles. I've tried the above with a ttf file, but it didn't help on this particular problem. Thanks a lot for a solution to a similar problem though :).

          – LasseValentini
          Nov 7 '10 at 1:12






          It seems that my main problem is that I want to use an OpenType font (ttf), and not a font designed for consoles. I've tried the above with a ttf file, but it didn't help on this particular problem. Thanks a lot for a solution to a similar problem though :).

          – LasseValentini
          Nov 7 '10 at 1:12












          3














          If you run grub-mkfont with the -v flag it will show you how many glyphs you get. If you get more than a thousand, the border character ought to be in there. Limiting the range will only make things worse. The DejaVuSansMono font displays all the characters correctly and it has over 3000 glyphs in the .pf2. Many other fonts get the arrows right but not the border.






          share|improve this answer



























            3














            If you run grub-mkfont with the -v flag it will show you how many glyphs you get. If you get more than a thousand, the border character ought to be in there. Limiting the range will only make things worse. The DejaVuSansMono font displays all the characters correctly and it has over 3000 glyphs in the .pf2. Many other fonts get the arrows right but not the border.






            share|improve this answer

























              3












              3








              3







              If you run grub-mkfont with the -v flag it will show you how many glyphs you get. If you get more than a thousand, the border character ought to be in there. Limiting the range will only make things worse. The DejaVuSansMono font displays all the characters correctly and it has over 3000 glyphs in the .pf2. Many other fonts get the arrows right but not the border.






              share|improve this answer













              If you run grub-mkfont with the -v flag it will show you how many glyphs you get. If you get more than a thousand, the border character ought to be in there. Limiting the range will only make things worse. The DejaVuSansMono font displays all the characters correctly and it has over 3000 glyphs in the .pf2. Many other fonts get the arrows right but not the border.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Jun 2 '11 at 19:34









              daithib8daithib8

              2,38022034




              2,38022034





















                  2














                  use a unicode font.. That worked almost fine( such as arialuni.ttf, shows all characters as required).. My problem is with the little bigger character spacing...and that happens with every font I tested.






                  share|improve this answer



























                    2














                    use a unicode font.. That worked almost fine( such as arialuni.ttf, shows all characters as required).. My problem is with the little bigger character spacing...and that happens with every font I tested.






                    share|improve this answer

























                      2












                      2








                      2







                      use a unicode font.. That worked almost fine( such as arialuni.ttf, shows all characters as required).. My problem is with the little bigger character spacing...and that happens with every font I tested.






                      share|improve this answer













                      use a unicode font.. That worked almost fine( such as arialuni.ttf, shows all characters as required).. My problem is with the little bigger character spacing...and that happens with every font I tested.







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Jan 6 '12 at 21:05









                      sarathkcmsarathkcm

                      211




                      211





















                          1














                          You can get this to display correctly by loading both the default font and the desired font.



                          Then, set the font to the desired font.



                          When the characters for the box are not found, the regular font which is also loaded will act as a default and the needed characters will be supplied.






                          share|improve this answer



























                            1














                            You can get this to display correctly by loading both the default font and the desired font.



                            Then, set the font to the desired font.



                            When the characters for the box are not found, the regular font which is also loaded will act as a default and the needed characters will be supplied.






                            share|improve this answer

























                              1












                              1








                              1







                              You can get this to display correctly by loading both the default font and the desired font.



                              Then, set the font to the desired font.



                              When the characters for the box are not found, the regular font which is also loaded will act as a default and the needed characters will be supplied.






                              share|improve this answer













                              You can get this to display correctly by loading both the default font and the desired font.



                              Then, set the font to the desired font.



                              When the characters for the box are not found, the regular font which is also loaded will act as a default and the needed characters will be supplied.







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Jul 2 '16 at 9:56









                              mchidmchid

                              23.5k25286




                              23.5k25286





















                                  0














                                  I realize this thread is ancient, but I was reading it today and came up with another answer not yet provided... so here it is:



                                  If you're getting odd characters in GRUB after changing fonts, it's because those characters didn't exist in the .ttf file you used to create the .pf2 file.



                                  The characters used to create the border are:



                                  • U+2501

                                  • U+2503

                                  • U+250F

                                  • U+2513

                                  • U+2517

                                  • U+251B

                                  The other commonly missing characters from a .ttf file are the arrows which are:



                                  • U+2191

                                  • U+2193

                                  You can use FontForge (open source software) to copy and paste those characters from a .ttf which has the characters included to the .ttf you're trying to use which does not. After generating a new .ttf with FontForge you can use grub-mkfont to create your .pf2 file that has all of the appropriate characters.





                                  share



























                                    0














                                    I realize this thread is ancient, but I was reading it today and came up with another answer not yet provided... so here it is:



                                    If you're getting odd characters in GRUB after changing fonts, it's because those characters didn't exist in the .ttf file you used to create the .pf2 file.



                                    The characters used to create the border are:



                                    • U+2501

                                    • U+2503

                                    • U+250F

                                    • U+2513

                                    • U+2517

                                    • U+251B

                                    The other commonly missing characters from a .ttf file are the arrows which are:



                                    • U+2191

                                    • U+2193

                                    You can use FontForge (open source software) to copy and paste those characters from a .ttf which has the characters included to the .ttf you're trying to use which does not. After generating a new .ttf with FontForge you can use grub-mkfont to create your .pf2 file that has all of the appropriate characters.





                                    share

























                                      0












                                      0








                                      0







                                      I realize this thread is ancient, but I was reading it today and came up with another answer not yet provided... so here it is:



                                      If you're getting odd characters in GRUB after changing fonts, it's because those characters didn't exist in the .ttf file you used to create the .pf2 file.



                                      The characters used to create the border are:



                                      • U+2501

                                      • U+2503

                                      • U+250F

                                      • U+2513

                                      • U+2517

                                      • U+251B

                                      The other commonly missing characters from a .ttf file are the arrows which are:



                                      • U+2191

                                      • U+2193

                                      You can use FontForge (open source software) to copy and paste those characters from a .ttf which has the characters included to the .ttf you're trying to use which does not. After generating a new .ttf with FontForge you can use grub-mkfont to create your .pf2 file that has all of the appropriate characters.





                                      share













                                      I realize this thread is ancient, but I was reading it today and came up with another answer not yet provided... so here it is:



                                      If you're getting odd characters in GRUB after changing fonts, it's because those characters didn't exist in the .ttf file you used to create the .pf2 file.



                                      The characters used to create the border are:



                                      • U+2501

                                      • U+2503

                                      • U+250F

                                      • U+2513

                                      • U+2517

                                      • U+251B

                                      The other commonly missing characters from a .ttf file are the arrows which are:



                                      • U+2191

                                      • U+2193

                                      You can use FontForge (open source software) to copy and paste those characters from a .ttf which has the characters included to the .ttf you're trying to use which does not. After generating a new .ttf with FontForge you can use grub-mkfont to create your .pf2 file that has all of the appropriate characters.






                                      share











                                      share


                                      share










                                      answered 1 min ago









                                      notorious.ddsnotorious.dds

                                      8116




                                      8116



























                                          draft saved

                                          draft discarded
















































                                          Thanks for contributing an answer to Ask Ubuntu!


                                          • Please be sure to answer the question. Provide details and share your research!

                                          But avoid


                                          • Asking for help, clarification, or responding to other answers.

                                          • Making statements based on opinion; back them up with references or personal experience.

                                          To learn more, see our tips on writing great answers.




                                          draft saved


                                          draft discarded














                                          StackExchange.ready(
                                          function ()
                                          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f11846%2fno-box-characters-after-changing-the-default-grub-font%23new-answer', 'question_page');

                                          );

                                          Post as a guest















                                          Required, but never shown





















































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown

































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown







                                          Popular posts from this blog

                                          Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

                                          Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

                                          Torre de la Isleta Índice Véase también Referencias Bibliografía Enlaces externos Menú de navegación38°25′58″N 0°23′02″O / 38.43277778, -0.3838888938°25′58″N 0°23′02″O / 38.43277778, -0.38388889Torre de la Illeta de l’Horta o Torre Saleta. Base de datos de bienes inmuebles. Patrimonio Cultural. Secretaría de Estado de CulturaFicha BIC Torre de la Illeta de l’Horta. Dirección General de Patrimonio Cultural. Generalitat ValencianaLugares de interés. Ayuntamiento del CampelloTorre de la Isleta en CastillosNet.org