What fonts do you use for programming, and for what language/IDE? I use Consolas for all my Visual Studio work, any other recommendations?
-
1Most answers to this question are "+1 for Consolas". If you had specified "only one answer per font" in your question, we could have used voting instead, the way the site was supposed to work. Just saying.– bzlmSep 28, 2008 at 14:51
-
Consolas is awesome. Unless you're connecting via RDP with Windows XP, in which case ClearType does not work so it looks way nasty...– devlordOct 23, 2008 at 6:16
-
alord1689, good news for you. Install XP SP3, then [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations] "AllowFontAntiAlias"=dword:00000001 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp] "AllowFontAntiAlias"=dword:00000001 :)– AlanNov 21, 2008 at 20:47
114 Answers
Either Consolas (download) or Andale Mono (download). I mostly use Andale Mono. I wrote an article about programming fonts a long time ago, I think Consolas wasn't even out yet.
http://www.deadprogrammer.com/photos/fonts.gif
I find that typing Illegal1 = O0
is a good test of suitability.
-
21Consolas is great if you're running ClearType on an LCD (though I haven't tried it on a CRT). Consolas is horrible if you don't have ClearType on because it was made with ClearType in mind.– Tom KiddSep 23, 2008 at 17:08
-
6Is it only me that thinks cleartype makes everything look slight out of focus? (ye sI do have an LCD!) Sep 23, 2008 at 17:14
-
1Consolas makes me feel sick... proFont and Andale are waaaay batter.– rshimodaOct 15, 2008 at 10:18
-
3The Consolas link above only works if you have Visual Studio installed. Otherwise download the Powerpoint 2007 Viewer which contains the font. microsoft.com/downloads/…– TravisONov 26, 2008 at 19:13
-
10
I've really fallen in love with Droid Sans Mono.
-
12I must say this font looks nice, but the O and 0 are too similar for me to adopt this.– mbillardSep 30, 2008 at 17:30
-
8Looks very nice but it should be mentioned that it doesn't have bold or italic, which many people like to have for syntax highlighting.– TM.Jun 1, 2009 at 4:32
-
I like italics for comments. In XCode you can specify that the comments have their own font and style, though, so not really a problem there.– NosrednaJun 1, 2009 at 4:37
-
I didn't even feel to find better font with "Menlo", however, this is first font made me feel to change my Xcode font setting.– eonilAug 25, 2010 at 9:27
I really really like DejaVu Sans Mono. It is very clean and easy on the eyes.
-
1I like the DejaVu fonts a lot better than the Consolas; I'm not sure why so many people like Consolas so much, actually.– TrevokeFeb 25, 2010 at 14:27
-
1I also like this one more than Consolas. Additionally, it has a wide range of rarer characters like arrows that are nice when using things like
font-lock-symbol-mode
for Haskell. Being able to use the same typeface for Cyrillic as well is also really nice. Jul 13, 2011 at 20:17 -
+1 for Monaco
alt text http://img.skitch.com/20080908-nmjji28uerreqpprs1h86gxna9.png
Just beautiful and I find I can read it for hours on end.
-
I heavily concur. I tried Inconsolata and others, but the letters are so squished together that it's hard to read. Shame. May 22, 2009 at 7:23
-
Monaco looks really sweet on a Mac. I use them at size 13 and it is perfect.– wenbertSep 26, 2009 at 3:56
-
-
That's the best one on Mac because of its antialiasing adapted to mac screens... Too bad it doesn't exists in italic and bold for Xcode! sticking with consolas because of this. I wished consolas rendering was better. May 17, 2011 at 14:17
I use Consolas for everything, including Notepad++, SQL Studio, Eclipse, etc. I wish there was a Mac version. Also, if you notice, the text area field on Stack Overflow uses Consolas, so we have some other fans out there as well :p
-
The same link Jeff provided will download Consolas on OS X, and it works fine for me at home. Sep 8, 2008 at 19:26
-
There's also Inconsolata which is a mac compatible copy. You'll need to google for it as the original creator's site is down, but it's out there!– defmetaOct 8, 2008 at 21:07
-
I tried Inconsolata on the Mac, but it didn't seem as good to me so I ended up moving Consolas to the Mac.– NosrednaJun 1, 2009 at 4:33
I like Envy Code R.
-
-
It is also very readable on a dark background (even at 13pt) like Tomas Restrepo's DesertNights Visual Studio theme at winterdom.com/weblog/CategoryView,category,VSColorScheme.aspx Nov 5, 2008 at 2:00
-
7For me, the font is too high - not necessarily the height of the characters, but the space between the lines. (I want more lines of code on the screen!) Dec 30, 2008 at 11:37
-
-
thanks for the tip. this font is very good for coding, even more with GDI++ Aug 10, 2009 at 23:29
+1 for Monaco, although this blog post is making me think about switching to Inconsolata.
I'm curious as to what point size y'all use, I use the TextMate default size of 12pt.
-
Monaco 9pt has been my default since starting with BEEdit on OS9 (or 8?)– LasarNov 3, 2008 at 9:51
-
1I'm getting older and screen resolutions are getting higher -- 9 pt is getting smaller and smaller. I've had to bump up to 10 pt or higher. Nov 3, 2008 at 18:18
-
I can't stand fonts that put a serif to the left of the bottom of the lowercase 'l'. such as inconsolata In what universe does an 'l' have that? It isn't similar to handwriting, printer's fonts, or a proportional font. It is too simliar to a '1'. At least Consolas and Monaco get it right. Dec 2, 2008 at 3:23
I use Bitstream Vera Sans Mono, but you need to activate ClearType to get it readable .
I like the 'Illegal1 = O0' readablility test, mentioned earlier in this thread, thanks for that.
-
Long time BVSM user as well. Wow, good to get that off my chest! Mar 9, 2009 at 18:30
-
I have just changed from being a loyal fan of this one as it doesn't contain macrons - en.wikipedia.org/wiki/Macron . I now use Consolas. Apr 25, 2009 at 0:43
-
3Apparently, DejaVu is an updated version of Bitstream Vera, with lots of characters that Bitstream Vera is missing. Perhaps you should look at DejaVu Sans Mono? Aug 20, 2009 at 10:23
Anarch, 32 points, ofcourse. Code with style!
-
21
-
-
I prefer this: home.student.uu.se/j/jowi4905/fonts/annatar.html (the italic version) Dec 4, 2009 at 8:12
-
1I guess this is how a designer thinks programmers should work... Mar 16, 2010 at 17:06
-
6
For UltraEdit and anything for that matter, I use the good old Courier New.
alt text http://www.identifont.com/samples/microsoft/CourierNew.gif
I've found Consolas to difficult to read with it's over anti-aliasing.
-
1Yeah, Courier New is great! ... for mixing up 1l, 0O and such... ;-) I don't Consolas either, but I definitively adopted Andale Mono since Microsoft started to distribute it on their Web site...– PhiLhoNov 29, 2008 at 9:11
-
Makes sense to use a font like courier New that is specifically designed for easy readability Aug 12, 2009 at 22:31
-
I like Courier New because it's easy to read, has italic and bold and is monospaced.– user142019Aug 5, 2011 at 13:07
I use Lucida Console for years and never find anything better.
However I tried a few times Consolas fonts and simply -- I prefer Lucida Console.
-
The problem with Lucida Console is that bold is wider than normal. I like to use bold in my syntax highlighting, but not if it makes my line grow and shrink as I use it! Dec 2, 2008 at 3:17
I like Terminus for some command line stuff, at least scrolling log files and irssi/irc (TTF versions available). Screenshot of the terminus.ttf in action below (PuTTY on Windows XP with ClearType enabled).
I use Consolas on my mac, BTW; here's a link to download the consolas TTF files if you want to install this (Mac/Win/Linux).
/mp
-
3
I don't use Consolas, though it does look good on LCD, but sometimes I'm not on LCD, like when I'm giving presentations and then it looks crap.
My current font of choice for programming is the Liberation Mono font.
Oh man, just discovered why the text on Stack Overflow looks like crap, it forces Consolas which is a cleartype font, and on my current setup which didn't have cleartype enabled, it looks very bad.
Going to make a bugreport on uservoice.
I have been using the Dina - http://www.donationcoder.com/Software/Jibz/Dina/index.html - font for awhile now for text editing and it seems to be doing the job nicely.
-
2I tried alot of programmer fonts before settling on this one too. If you are a cross platform developer, you can find a Linux (X Windows) version of the font in the forum on that page. donationcoder.com/Forums/bb/index.php?topic=7857.0 Apr 3, 2009 at 19:11
-
1One more thing, take your favorite programming font and check the alignment on two lines with the same text but different sections in bold and italic. Alot of fonts don't get this right. Apr 3, 2009 at 19:13
-
I like Dina as well, although there are others I don't mind. I'm not as picky as some of the other posters. Jun 20, 2009 at 23:59
-
I use this font extensively in my editors, and even my command window and putty sessions. I find it the most comfortable font for coding. Nov 24, 2010 at 17:03
ProFont. Am I the only one still using it?
-
I use it for pretty much everything that a monospace font is useful for - I love it!– DanOct 14, 2008 at 19:43
-
-
I use it and love it... Profont is usually one of the first things I install on my dev machines. Jan 29, 2009 at 4:39
-
I love ProFont as well. Got VS and Notepad++ using it. I usually grab it on the second day of using a new box when I start to get annoyed with Consolas.– BrandonApr 28, 2009 at 23:54
I like Fixedsys in Visual Studio. It's a classic. No anti-aliasing blur.
-
-
I ported FixedSys to a TTF, and others continued my work fixedsys.moviecorner.de/?p=download&l=1– TravisONov 26, 2008 at 19:16
A excellent CodeProject article that list 33 fonts for programming (With examples of each)
I'm amazed nobody has mentioned Pragmata. It's the BMW of programming fonts. Condensed, readable, and the pinnacle of simple elegance.
alt text http://www.fsd.it/fonts/imm/pr_abc.gif
There is now a fundraising project going on for PragmataPro (which covers a larger portion of Unicode than Pragmata) to make it available for free under a Creative Commons license!
-
It's a pretty hard sell for someone to spend ~ $125-150 on a programming font. Oct 20, 2008 at 7:35
-
That's a good point. It's definitely a luxury. The author gave me a discount though (upon request) and I'm sure he would do the same for any bulk purchases. Oct 20, 2008 at 18:17
-
I use it, too ;) But the 0 and the O are too similar I think. And the I and the l. Therefore I sometimes switch back to Courier. Mentioning price: how long do you watch this font?– wishiFeb 3, 2009 at 12:58
-
16
-
Important to note that that €90 price is for up to "5 computers of one company" - this is quite standard for font licencing.– e100Mar 8, 2010 at 13:06
I use Inconsolata with UltraEdit on Windows. With TextMate (on the Mac) I prefer Monaco (it's the default font).
Inconsolata 14pt in TextMate
-
That's what I use, and it looks great (although it seems to look much better on dark backgrounds, rather than light ones).– mipadiOct 22, 2008 at 15:36
I like Profont, I first came across it when Jeff blogged about programming fonts
I like Consolas too, but I also like Anonymous: http://www.ms-studio.com/FontSales/anonymous.html
-
Anonymous is great... I always keep coming back to it. Especially good for machines without ClearType. Oct 20, 2008 at 18:23
-
1There's a new and improved version, Anonymous Pro, with bold, italic and international Unicode characters: ms-studio.com/FontSales/anonymouspro.html. Open licence.– e100Oct 26, 2009 at 17:54
I never found a reason to stray from Courier New. I don't think I'd have a problem with any font so long as it's sans-serif. Mono-spaced fonts are nice for coding, too.
-
2
-
True, but when I say sans-serif, I mean something that's NOT like Times New Roman (with its annoyingly curvy serifs). Dec 11, 2008 at 15:13
-
5
-
I once switched over my editor to a serif font, thinking "Hey, this is what I use in everything else, so...". Yeah, that got annoying pretty quickly, especially if you look at code that's supposed to be aligned and it isn't... Aug 25, 2009 at 22:26
I use a proportional font too. They seem good for the same reasons they work in books and magazines: the more variation between characters, the easier it is for the brain to distinguish them; and you can fit more on the screen. Indentation still works fine: 6 leading spaces is still twice as wide as 3 leading spaces.
I use a version of Georgia that I hacked to make the lower case "l" look less like the digit "1", and put a slash through the zero.
I think the anti-aliasing blur on Consolas is caused by monitors which do not have ClearType enabled. Consolas was designed for ClearType.
[Jeff A: indeed, you can see screenshots of this in a post I wrote on this topic.]
Instead of just chiming in with another vote for a particular font, I'd recommend reading these comparisons of programming fonts where you can learn a little more:
Jeff Atwood's excellent "round-up":
http://www.codinghorror.com/blog/archives/000157.html
Another review of 5 fonts with nice screenshots:
http://blog.hamstu.com/2008/02/03/the-typography-of-code/
Two pages where there's a long list of programming fonts are these pages on keithdevens.com and lowing.org (dead link, but it's in the internet archive)
Some other discussions of programming fonts that may have more suggestions are the comments to this blog post on typographica and this topic on a text editor's forum.
Personally I like Triskweline:
alt text http://www.netalive.org/tinkering/triskweline/shot.gif
-
The lowing.org link doesn't work for me - actually found it in 2 different places this morning, neither of which worked.– coriOct 19, 2009 at 13:35
DejaVu Sans Mono (sometimes known as Panic Sans), size 11, anti-alised. Previously I only used fonts that weren't anti-aliased, but it just seems to work for this font.