My favorite is Source Code Pro by Adobe [1]. I use it on Mac OS X and Ubuntu. On Windows I have to use Consolas, because SCP does not render well in gVim for Windows (at least not on my system). Note that Source Code Pro does not have an Italic typeface yet. Italics are commonly used for source code comments and most editors will automatically emulate the shapes, often with poor results. Active development is current…
[2] was raised in 2012 and still in discussion. I have no idea how fonts are made. Why does it take 2+ years to make a font italic?
Ask HN: What programming font do you use?
51–60 of 78 posts
Re: Ask HN: What programming font do you use?
#52I've recently switched to Fira Mono [4], designed by the awesome Erik Spiekermann for Mozilla.
[1] http://levien.com/type/myfonts/inconsolata.html
[2] http://nodnod.net/2009/feb/12/adding-straight-single-and-dou...
Re: Ask HN: What programming font do you use?
#53Re: Ask HN: What programming font do you use?
#54Courier New (Visual Studio). I keep trying other stuff, but they are a distraction. Courier New does not draw attention to itself, just seems to blend in, and the code communicates directly to you.
I'm a huge fan of Adobe's Source Code Pro, but you might wanna take a look at Courier Prime: http://quoteunquoteapps.com/courierprime/
Thanks for the suggestion anyway.
Re: Ask HN: What programming font do you use?
#55Re: Ask HN: What programming font do you use?
#56Geneva. I don't understand why programmers use monospace fonts, other than some kind of tradition.
It is worth noting that all quality programming publications display code in fixed pitch. Knuth, in his epochal "Art of Computer Programming", uses fixed-pitch serif for source code. Petzold's "Programming Windows" uses fixed-pitch, as does Kernighan & Ritchie's "The C Programming Language".
Re: Ask HN: What programming font do you use?
#57Geneva. I don't understand why programmers use monospace fonts, other than some kind of tradition.
Alignment probably more than anything, though obviously the necessity for that depends on the language and style.
Not left edges. Even in non-monospace fonts, every blank is the same with, same with every tab.
Re: Ask HN: What programming font do you use?
#58Geneva. I don't understand why programmers use monospace fonts, other than some kind of tradition.
That is an interesting observation. Perhaps it is due to habit. After 45 years of programming (started with punched cards), I am accustomed to fixed-pitch fonts. Proportional fonts for code seem unintelligible to me. It is worth noting that all quality programming publications display code in fixed pitch. Knuth, in his epochal "Art of Computer Programming", uses fixed-pitch serif for source code. Petzold's "Programmi…
But in the code itself, this isn't a consideration.