I’ve procrastinated a while to publish this post, because I wasn’t sure how useful it would be to the community. Hack it, I finally feel it’s important enough for all to come to know of this wonderful font that made my programming life better when chunks after chunks of code became much easier to look at. 😀
If you’re still using Courier New, the default font for a lot of IDEs, I can certainly tell you it isn’t the best. Here’s a simple comparison of two variables:
You may or may not notice straightaway, that one of the variables has a "0"(zero) rather than an "O"(capital O) for the text "Outro". Although functionality wise it wouldn’t have cause much of a problem since it’s still a valid variable name, it’s something that I deem as very bad, since it might potentially cause bugs when I least expected it to be.
I began my search sometime around end of last year, and I’m pleased to bring your attention to Dina, which had become my favourite programming font. From the creator’s own words:
Dina is a monospace bitmap font, primarily aimed at programmers. It is relatively compact to allow a lot of code on screen, while (hopefully) clear enough to remain readable even at high resolutions.
Here’s the same comparison of the variables as above. Note how easy it is to spot the mistake now? 😀
The full set of characters from Dina:
And finally an example of how things will look when using Dina for programming:
As the author had hoped, Dina has really allowed me to see huge chunks of codes at 8pt and yet maintains the crisp-and-clear readability. Its clean nature has also made looking for bugs less frustrating (it’s something that I find to be psychological 😛 ).
Dina is however, for Windows user only. I’m really keen to know what good programming fonts are out there for Mac users (because I’m thinking of getting myself a MacBook Pro in months to come), so it’ll really help if anyone can recommend some fonts that you have used and feel it’s great to use for programming on a mac. 😉