» Install the Best Coding Font
If you are in IT professionally (coding or sysadmin) you will be staring at monospaced fonts for many many hours a day. So it's probably justified to spend 2 minutes picking a very good one. It can make your work (typing ; ) just a little bit more pleasing.
I did some research and the Inconsolata font by Raph Levien is considered one of the best programming fonts by many. I must say it's pretty good on the eyes, but decide for yourself:

You can download it and install it yourself, or:
Install the font on Ubuntu
As suggested by Gekkio in the comments section:
"If you're using Ubuntu 9.04, there's also a packaged version available in the repos which should setup things perfectly:
sudo aptitude install ttf-inconsolata
(Requires universe repos to be enabled)"
Thank you Gekkio!
So just copy-paste that. Your font cache will be refreshed and when you start a new Terminal or IDE, you should be able to select the Inconsolata font.
NetBeans Anyone?
NetBeans didn't seem to support the Inconsolata font but as suggested by Filip Jukić in the comments section:
"It seems that NetBeans doesn't support OTF fonts. You might try converting it to TTF using FontForge, I decided it wasn't worth the hassle."
So I decided to do just that and I now have Inconsolata in My new IDE: NetBeans:

Download the TTF version
If you need the TTF version for NetBeans (or another IDE that doesn't support OTF), download it here.
Install the TTF version (Ubuntu only)
If you have Ubunbtu you can just paste the following in a terminal:
[ "$(whoami)" = "root" ] && {echo "No this time you really can't be root ; )" exit 1}
sudo echo "Installing inconsolata font..."
[ -d "~/.fonts" ] || mkdir "~/.fonts/"
cd ~/.fonts/
wget http://kevin.vanzonneveld.net/docs/install_the_best_coding_font/Inconsolata.ttf
sudo echo "Refreshing cache..."
sudo fc-cache -f -v
sudo echo "Done."
Question
What is your favorite coding / sysadmin font?
Stay up to date
You can track my blog
articles and
comments. You may also find my
bookmarks interesting. Or
Follow me on Twitter
Like this Article?
|
Your money is no good here, but you can boost morale by spreading the word! : ) |
RelatedArticles like this one» How virtualization will improve your code |
tags: ubuntu, programming, sysadmin, desktop, ide, font, terminal, monospaced, incolsolata
category: Programming
read: 20,185 times






tagcloud
#31. Kevin on 12 August 2010
#30. Javi on 29 July 2010
http://www.donationcoder.com/Software/Jibz/Dina/
#29. Mecki on 19 July 2010
#28. Robert Peters on 22 June 2010
#27. chrelad on 16 June 2010
#26. Luis Landgrave on 13 April 2010
#25. bluepicaso on 22 March 2010
Actually i did a small thing
XP: Control Panel > Display > Appearance > Effects: "Use the following method to smooth
edges of screen fonts" Set to clear type
... [more]
Though all the fonts look good but fonts in komodo edit are just not good on eyes. Could you please help?
#24. bluepicaso on 22 March 2010
#23. pietra on 19 March 2010
cheers!
#22. Niroshan on 18 March 2010
#21. Kevin on 10 June 2009
Also seems to me that you should own everything inside your homedir so I think you could:
And be done with it ; )
#20. Alex Weber on 08 June 2009
Cheers!
#19. Meshach on 05 June 2009
Mine would probably be Monaco.
#18. Meshach on 04 June 2009
#17. Kevin on 04 June 2009
Doesn't really make sense to me why you should have to sudo for a wget though.
#16. Kevin on 04 June 2009
Sometimes sudo asking for a password prevents further execution. Maybe you could try again and let me know?
#15. Alex Weber on 04 June 2009
My bad for the double post!
#14. Alex Weber on 04 June 2009
My favorite font apart from Inconsolata is Vera Sans btw! :)
#13. Kevin on 27 May 2009
@ sweetl80: If I remember correctly Inconsolata was actually based on Consolas, but I'm not entirely sure : )
#12. Chris on 27 May 2009
#11. sweetl80 on 27 May 2009
will try this tho, it looks really nice.
#10. Brian C. Ladd on 26 May 2009
My only disappointment is that there is no bold variant so printing highlighted code does not work (I am finishing up a programming manuscript and I need to be able to highlight Java code on the static page). Heck, I'd be willing to pay money for the bold versions.
-bcl
#9. Kevin on 26 May 2009
#8. Pieter on 26 May 2009
Haven't tried it with .otf though.
#7. Kevin on 26 May 2009
@ Gekkio: Didn't even check apt for the font, this is awesome! I've updated the article accordingly, thx!
@ Filip Jukić: OK that explains a lot : ) Let me see how hard that is & maybe share the result here.
#6. Filip Jukić on 26 May 2009
#5. Gekkio on 26 May 2009
sudo apt-get install ttf-inconsolata
(Requires universe repos to be enabled)
#4. Jake Boxer on 26 May 2009
I really can't explain it; it just feels better to look at my code in a nice font.
#3. Priit on 26 May 2009
#2. m.milicevic on 25 May 2009
@see: http://www.raydreams.com/docs/dpi.html
#1. m.milicevic on 25 May 2009
it's all personal of course, but I like Envy R much better: http://damieng.com/blog/2008/05/26/envy-code-r-preview-7-coding-font-released
It is also free.
Few years ago I bought Pragmata font (which is right now way to expensive) and Envy R is a lookalike of Pragmata...I found Inconsolata to "square-ish"