LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-22-2012, 12:08 PM   #1
steak1987
Member
 
Registered: Jan 2012
Posts: 116

Rep: Reputation: Disabled
Question GRUB Customization (fonts)


Hey, im trying to customize grub, ive already got my background of choice :



Im now trying to change the font to this old windows font called westminster :

http://www.fonts101.com/fonts/view/S...19/Westminster




I installed the font, but when I opened grub-customizer I wasnt given the option to select that font. Anybody have any clues how to use that font for the GRUB menu ?
 
Old 09-22-2012, 01:56 PM   #2
leosubhadeep
Member
 
Registered: Jul 2012
Location: West Bengal,India
Distribution: Ubuntu 14.04,Fedora 20,Windows 7
Posts: 111
Blog Entries: 3

Rep: Reputation: 1
Smile No sweat

Before trying grub-customizer (which is the best option, of course), you might be interested on putting your own hands on GRUB:

http://askubuntu.com/questions/11846...ault-grub-font

And for GRUB2: https://help.ubuntu.com/community/Grub2

Find something in GRUB manual: http://www.gnu.org/software/grub/man...ode/index.html

Go below the page and read the discussions. May be that work for you! You must, of course, take necessary backups!

To minimize your search, I make a quote here:

[QUOTE]What worked for me:

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...
Converting only the ASCII characters with grub-mkfont:

grub-mkfont --output=out.pf2 --range=0x0-0x7f out.bdf[//QUOTE]

Please note that updation and procedures of grub/grub2 has been changed since the post. For example, you should use:
Code:
sudo grub-mkconfig -o /boot/grub/grub.cfg
after each change in GRUB.

Lastly, use grub-customizer with care. I haven't tested it, as I have always done that manually and now, I have an urguably better one: YAST (openSUSE)!!

Last edited by leosubhadeep; 09-22-2012 at 02:00 PM. Reason: Put more info
 
Old 09-22-2012, 02:28 PM   #3
leosubhadeep
Member
 
Registered: Jul 2012
Location: West Bengal,India
Distribution: Ubuntu 14.04,Fedora 20,Windows 7
Posts: 111
Blog Entries: 3

Rep: Reputation: 1
Update: Downloaded and checked Grub-Customizer

After my previous post, I downloaded and checked Grub-customizer. I'd suggest you use other fonts like sans.

Also don't forget to manually check things like screen resolution in:
Quote:
/etc/default/grub
 
Old 09-23-2012, 09:50 AM   #4
steak1987
Member
 
Registered: Jan 2012
Posts: 116

Original Poster
Rep: Reputation: Disabled
When trying the command "grub-mkfont" I get the following error:

Code:
grub-mkfont --output=out.pf2 --range=0x0-0x7f westminster.bdf 
grub-mkfont: error: can't set 15x15 font size.
What are my options now ?
 
Old 09-23-2012, 01:31 PM   #5
leosubhadeep
Member
 
Registered: Jul 2012
Location: West Bengal,India
Distribution: Ubuntu 14.04,Fedora 20,Windows 7
Posts: 111
Blog Entries: 3

Rep: Reputation: 1
Did you try with smaller font size and other fonts? Because, I am unable to locate an error with your mkfont.

However, look at this old thread: http://askubuntu.com/questions/11846...ault-grub-font

Let me know what you get.
 
Old 09-23-2012, 10:50 PM   #6
steak1987
Member
 
Registered: Jan 2012
Posts: 116

Original Poster
Rep: Reputation: Disabled
How would I change the size of the font ? This is the output of the gbdfed program "westminister.bdf".


http://www.mediafire.com/?40a1bo6ymymdpec


I cant see any instructions as to how to change the font size. I do apologize, im fairly new to linux so if its an ovbious command, I may not see it as such.
 
Old 09-24-2012, 02:24 PM   #7
leosubhadeep
Member
 
Registered: Jul 2012
Location: West Bengal,India
Distribution: Ubuntu 14.04,Fedora 20,Windows 7
Posts: 111
Blog Entries: 3

Rep: Reputation: 1
Well, it seems you are missing some things.

Make sure you are working with root privileges. As I mentioned earlier, I didn't try grub-customizer because I didn't need to, I can give you links that might help you.

1. First read this (you don't have to read it all, just read necessary parts): http://ubuntuforums.org/showthread.php?t=1664134

2. Next, go to the launchpad to get some help. If you want, ask there to clear your doubts or report a bug: https://launchpad.net/grub-customizer

3. I don't know why you need grub-mkfont if you have the font made as bdf in mediafire, the grub-customizer should allow it. I also don't have an idea if grub-customizer can't create a grub font for you. However, try
Code:
info grub-mkfont
to get full help on grub-mkfont.

4. You can find how to set size of font in here: http://www.fredprod.com/cgi-bin/man/...?grub-mkfont+1

Hope it helps. All the best.
 
Old 10-13-2012, 09:32 AM   #8
steak1987
Member
 
Registered: Jan 2012
Posts: 116

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by leosubhadeep View Post
Well, it seems you are missing some things.

Make sure you are working with root privileges. As I mentioned earlier, I didn't try grub-customizer because I didn't need to, I can give you links that might help you.
...[ ... ] .....

Hope it helps. All the best.
Im sorry for my tardiness and late replies, I've been away from my PC for a while. I think I might be coming near the end of this. Yes, I am using root privileges for the commands.

I opened up the grub file directly, and managed to find this interesting looking string.

Code:
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root be6c4640-7368-4aad-929b-d3be0ff2804b
if loadfont /boot/grub/unicode.pf2 ; then
  set gfxmode=1024x768x24
  load_video
  insmod gfxterm
Since I cant find font anywhere else in the document, that string must be what sets the font .
I opened
Code:
/boot/grub
in nautilus (sudo'd ofcourse) and I was able to see the actual file.

All I needed to do now is to figure out a way to convert BDF to PF2 and then simply replace the file, cross my fingers, and pray it would work . I tried a bit of googling around, and I managed to find this :

http://grub.gibibit.com/New_font_format

However, again, I was told of grub-mkfont. I tried my terminal skills, and punched in this command.

Code:
grub-mkfont --in=westminster.bdf --out=font.pf2
The resulting file was suspiciously small, only 150 bytes, compared to unicode.pf2 which was about 10Kb.

I dont want to risk borking up my grub, on a file which im confident isnt the converted font.

tl;dr : Is there any other way I can convert a bdf font file to a pf2 file ?
 
Old 10-16-2012, 05:25 PM   #9
leosubhadeep
Member
 
Registered: Jul 2012
Location: West Bengal,India
Distribution: Ubuntu 14.04,Fedora 20,Windows 7
Posts: 111
Blog Entries: 3

Rep: Reputation: 1
Sorry for late reply and hope your prob is solved. If not, try editing grub theme file after taking a backup. It's a text file and if you have knowledge of css terms, you can handle it. BTW, how did you try grub customizer?
 
Old 10-19-2012, 03:13 AM   #10
leosubhadeep
Member
 
Registered: Jul 2012
Location: West Bengal,India
Distribution: Ubuntu 14.04,Fedora 20,Windows 7
Posts: 111
Blog Entries: 3

Rep: Reputation: 1
Quote:
Originally Posted by steak1987 View Post
Is there any other way I can convert a bdf font file to a pf2 file ?[/B]
No idea. But I googled your question and found this: http://askubuntu.com/questions/11846...ault-grub-font
 
Old 10-26-2012, 09:53 AM   #11
steak1987
Member
 
Registered: Jan 2012
Posts: 116

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by leosubhadeep View Post
No idea. But I googled your question and found this: http://askubuntu.com/questions/11846...ault-grub-font
I also stumbled upon that question, but I couldnt see how it told me about the font conversion.

I did try the command that was suggested, but it didnt work out for me.

Quote:
grub-mkfont --output=out2.pf2 --range0x0-0x7f westminster.bdf
grub-mkfont: unrecognized option '--range0x0-0x7f'
Try `grub-mkfont --help' for more information.
For grub customizer, I followed these instructions :

https://launchpad.net/~danielrichter...rub-customizer

Last edited by steak1987; 10-26-2012 at 09:58 AM.
 
  


Reply

Tags
font, grub, windows


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] e-17 customization matiasar Linux - Desktop 4 11-23-2010 06:24 AM
Berly Customization Help soldier228 Linux - Software 8 05-10-2007 08:43 PM
Customization Questions Arkas Linux - General 2 08-27-2006 05:17 PM
Customization Jmcatch742 Linux - General 7 08-21-2004 09:55 PM
fonts, desktop customization, fun stuff = newb here. spiffdoodle Linux - Newbie 6 02-25-2004 10:05 PM


All times are GMT -5. The time now is 04:40 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration