Programming fonts

Posted on June 17th, 2008.

Finding a good programming font is important. You need to find one that you like (if such a font exists), because it might just make you that little bit more productive.

A good programming font needs to be a monospaced font, which is easy read. The font will also make it easy to distinguish between similar characters, such as “O” and “0″.

I’ve always had trouble finding the “right” programming font. They all seem to let me down in one way or another. To that end, programming fonts have actually had a negative effect on my programming experience. I’m a perfectionist (unfortunately), and if something doesn’t look exactly right, I’ll dismiss it. I’d download a programming font, which had looked good in an online sample. I’d then start to code a little, and I’d soon realise that my code still looked ugly. I’d then go and try another font. It was (and still is to this day) a fruitless search, because no programming font is perfect (nothing’s perfect which is quite frustrating for a perfectionist).

I suppose in reality, a programming font doesn’t need to look good, functionality is much more important. It’s not about how the code looks, it’s about the looks of the application which the code produces, and even more importantly, how that program functions. I should be reminding myself of that fact every time I fall out with a font.

I suppose it’s time for me to come to my senses, and realise that there’s no perfect programming font out there.

Here’s a rundown of some of the better fonts I’ve used over the last few years, and why I gave up on them.

All of the fonts below work best (in my opinion) with Microsoft ClearType turned on.

Courier New

This one’s the old favourite, and the unofficial standard. Almost every programming editor you install will use this font by default. However, it is one of the ugliest fonts out there. Nevertheless, after trying a new programming font for a while, I’ve always come back to it. I suppose it’s because I know it’s going to make my code look ugly, and as a result, I’ve mentally resigned myself to the fact that my code isn’t going to look good.

Courier New programming font

Consolas

I installed this font after doing a search on Google, and was delighted with it at first. That is until I had to use a semi-colon. The comma put me completely of this font. It’s really ugly and bulky, and ruins the entire font. In addition, the “@” symbol is also a let down compared to the rest of the font.

Consolas programming font

Bitstream Vera Sans Mono

The letters in this font don’t look as good as those in Consolas. On top of that when working with HTML, the “<” and “>” characters just don’t look right, especially when next to a letter.

Bitstream Vera Sans Mono programming font

Lucida Console

This font looks like it’s been squashed downwards - enough said.

Lucida console programming font

My final attempt…

The last programming font I’m going to try is TheSans Mono Condensed by LucasFonts. It comes at a price, but I hope it’s going to be worth it. It’s growing on me, the letters look great, and it looks great when large, so it’s much easier to read on screen. I’m still deciding if the price was worth it, because as I’ve said, no programming language is perfect.

I’m going to give it a fair chance though.

As you can read, I’m extremely shallow when it comes to choosing a programming font. If it doesn’t look just right, I’ll dump it.

You can find more information on programming fonts on the sites listed below.

Make a Comment

Make A Comment: ( 5 so far )

blockquote and a tags work here.

5 Responses to “Programming fonts”

RSS Feed for aaronfalloon.com Comments RSS Feed

I kinda like Consolas… A weird looking comma on ; and the @ looks odd, and you dump it? Wow, you _are_ picky… :)

Vincent
June 18th, 2008

As I mentioned, (unfortunately) I’m a bit of a perfectionist, and so am terribly picking. It’s a curse…! ;)

Aaron
June 18th, 2008

Bitstream Vera looks … kinda tall. Coding fonts should be fixed width. I also prefer them to be uhm, squarish. Courier New and Consolas does that.

I remember Jeff Atwood saying Consolas 15 point is good. I tried it at the work office, because I got a larger monitor, and I felt my eyes getting attacked by the relatively smaller font.

Switched to Consolas 15 point in Visual Studio, and all is well…

Vincent
June 19th, 2008

I remember trying Consolas at larger sizes, and as always I didn’t like it. I’m just going to have to choose a font and live with it. Otherwise, I’ll get nowhere.

Aaron Falloon
June 20th, 2008

[...] were viewed per head than in May. The top three posts for June were my May blog review, my post on programming fonts, and my post on the best free backlink [...]

Where's The Comment Form?

About

RSS

Entrecard

BlogRush

Meta

Liked it here?
Why not try sites on the blogroll...