Friday, May 8, 2009

Jaunty, gnome-terminal font


The first thing I do when I clean install an Ubuntu release, is configure my fonts. I need them to be just right otherwise it feels like I can't work right. Usually, I have no trouble when changing customizing my fonts, but in Jaunty, it was not that easy.

Let's cut to the chase, these are my settings for my fonts:






So this caused my terminal font to look like this (BTW I use Monospace Bold 11):




As you can see the font is very thing and weird, it burns my eyes! If this is the case for you too, then you need to do the following to fix your terminal font.

Create a .fonts.conf file in your home directory:
gedit ~/.fonts.conf

Then paste the following code:


 1 <?xml version="1.0"?> 
 2 <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> 
 3 <fontconfig> 
 4     <match target="pattern"> 
 5         <test qual="any" name="family"> 
 6             <string>monospace</string> 
 7         </test> 
 8         <edit name="autohint" mode="assign"> 
 9             <bool>true</bool> 
10         </edit> 
11     </match> 
12 </fontconfig>




Save it and the effects should be immediate. This is the result after the file has been made.




I hope this helps someone out there. Share any other information I have missed and if you have any questions feel free to leave a comment.

5 comments:

Ariel Arjona said...

Awesome!

Amar said...

Thanks for the post !!
I had the same problem with fonts in gnome-terminal and I was about to remove januty and install 8.04 again.
That quick fix saved me a lot of effort.

Trigoman05 said...

I'm glad I was of help :D

roony j. welch said...

Thank you. Can you tell me the name of the font used in the code you suggest pasting? That's the one I would like somehow to resurrect and use in DOS applications on my laptop computer -- this may not be possible.

Jose said...

I believe that font is called Courier New. I'm not sure if you can get that on the gnome-terminal, but where there is a will there is a way, at least that's has always been my experience with Linux.