News for hackers. Stuff that matters.
Re:Ask HN: What programming font do you use? by ljoshua on Sunday August 24, 2014 @08:27AM (#8218381)
Re:Ask HN: What programming font do you use? by notduncansmith on Sunday August 24, 2014 @08:46AM (#8218416)
+1 for Source Code Pro. Looks lovely in my editor and my terminal.
Re:Ask HN: What programming font do you use? by lucianp on Sunday August 24, 2014 @09:03AM (#8218458)
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 currently being done in this direction [2].

[1]. http://dwabyick.github.io/Source-Code-Pro

[2]. https://github.com/adobe-fonts/source-code-pro/issues/6

Re:Ask HN: What programming font do you use? by thegeomaster on Sunday August 24, 2014 @09:43AM (#8218536)
Just a minor nitpick: you are probably referring to an oblique style, not italic. Italic style implies a calligraphic handwriting look-alike, and is way more common with serif typefaces. Oblique style is just glyphs tilted to right, and I think that's what you meant here. No offense intended, of course.
Re:Ask HN: What programming font do you use? by swah on Monday August 25, 2014 @01:27PM (#8222797)
"No offense intended?" Even the system font selector uses "italic" ...
Re:Ask HN: What programming font do you use? by thegeomaster on Wednesday August 27, 2014 @10:09AM (#8232151)
Yes, but CSS, for instance, uses 'oblique'. You can look up the definitions yourself if you don't trust me...
Re:Ask HN: What programming font do you use? by quantisan on Sunday August 24, 2014 @09:16AM (#8218487)
[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?
Re:Ask HN: What programming font do you use? by Tomte on Sunday August 24, 2014 @09:19AM (#8218495)
Because you need to come up with a design for the cursive variant and then draw all those glyphs.

So the time needed is probably shorter than the time spent on the regular variant, but only by a small factor, certainly not orders of magnitude.

Re:Ask HN: What programming font do you use? by sp332 on Sunday August 24, 2014 @09:37AM (#8218526)
The glyphs can look completely different in italic. http://www.fffranziska.com/#sec_italics And after drawing the glyphs, manually checking and adjusting the kerning between every pair of glyphs takes a lot of time too.
Re:Ask HN: What programming font do you use? by lucianp on Sunday August 24, 2014 @09:33AM (#8218516)
You are right. From reading the comments on the issue [2], this seems to be the reason why it takes so long. Although I have now idea of how fonts are made, I think the work needs to be done for all currently available weights (7 different weights).
Re:Ask HN: What programming font do you use? by lukeholder on Sunday August 24, 2014 @09:54AM (#8218557)
Its not just in discussion, a person has been commissioned and working on it for quite a while. it was 2 days he push the latest version.
Re:Ask HN: What programming font do you use? by quantisan on Sunday August 24, 2014 @08:15AM (#8218359)
Re:Ask HN: What programming font do you use? by krispyfi on Sunday August 24, 2014 @08:58AM (#8218442)
If you program with Japanese comments, I really recommend Ricty.

It's a combination of Inconsolata for Latin characters and an IPA font variant called Migu 1M for Japanese characters in the same dimensions.

I've never seen it as a binary, so you have to run a script to build it yourself.

https://github.com/yascentur/Ricty

Re:Ask HN: What programming font do you use? by rjsw on Sunday August 24, 2014 @09:17AM (#8218492)
I use Inconsolata in most applications except emacs.

I'm using a fairly old version of emacs without Xft2 support so use codec[1] with it.

[1] http://www.all-day-breakfast.com/cannam/codec.html

Re:Ask HN: What programming font do you use? by inDigiNeous on Sunday August 24, 2014 @08:56AM (#8218436)
Inconsolata here too, with vim and the MadeOfCode theme: http://madeofcode.com/posts/29-photo-my-new-textmate-theme-8...
Re:Ask HN: What programming font do you use? by Lorem-Ipsum on Sunday August 24, 2014 @08:46AM (#8218417)
Inconsolata-dz here with the powerline patch.
Re:Ask HN: What programming font do you use? by Turing_Machine on Sunday August 24, 2014 @08:49AM (#8218422)
+1 for Inconsolata.
Re:Ask HN: What programming font do you use? by sever on Sunday August 24, 2014 @11:53AM (#8218824)
I'm a font fetishist, so over many years I've tried many fonts. Settled on Maax Mono [1], I find it to be remarkably beautiful.

[1] https://www.myfonts.com/fonts/gautier/maax-mono/

Re:Ask HN: What programming font do you use? by swah on Monday August 25, 2014 @01:12PM (#8222692)
Do you use it outisde retina environments?
Re:Ask HN: What programming font do you use? by Argorak on Sunday August 24, 2014 @08:49AM (#8218423)
Fira Sans Mono.

https://www.mozilla.org/en-US/styleguide/products/firefox-os... (not displayed, but the download includes a Mono variant)

Re:Ask HN: What programming font do you use? by spatz on Sunday August 24, 2014 @09:29AM (#8218507)
Fira Mono is really beautiful, but the problem I have with it is the vertical spacing. The lines are so far apart, almost nothing fits in the screen.
Re:Ask HN: What programming font do you use? by Argorak on Monday August 25, 2014 @08:14AM (#8221411)
One's joy, the others pain. I like that ;).
Re:Ask HN: What programming font do you use? by brainburn on Sunday August 24, 2014 @08:36AM (#8218389)
Cosmic Sans Neue Mono

Note there's an S in Cosmic :)

https://github.com/belluzj/fantasque-sans

Re:Ask HN: What programming font do you use? by charlesism on Sunday August 24, 2014 @02:25PM (#8219229)
Thanks, that's one snazzy programming font. I'm definitely giving it a try. Edit: it's nice at small sizes. They should have made a hairline variant though, for larger sizes, as it's pretty bold and the characters aren't as distinct as the could be. Think I'll keep using it for a while longer and see how it goes
Re:Ask HN: What programming font do you use? by jimlei on Sunday August 24, 2014 @09:00AM (#8218448)
I think the default fonts work great so I have never changed the font of the editor(s) I use. Am I weird?
Re:Ask HN: What programming font do you use? by sjtrny on Sunday August 24, 2014 @09:31AM (#8218511)
No, I'm the same way too. I've never even thought about changing the font in IDEs or terminal.
Re:Ask HN: What programming font do you use? by dgellow on Sunday August 24, 2014 @08:19AM (#8218369)
Re:Ask HN: What programming font do you use? by jacobroufa on Monday August 25, 2014 @04:43PM (#8224132)
Have you tried Droid Sans Mono Slashed? I find that the slashed 0 helps readability quite a bit.
Re:Ask HN: What programming font do you use? by izietto on Sunday August 24, 2014 @08:46AM (#8218415)
Ubuntu Mono https://www.google.com/fonts/specimen/Ubuntu+Mono I like it a lot.

Here an example of Sublime Text 3 + Ubuntu Mono 10pt + Blackboard Theme: http://imgur.com/qW8yyi0

Re:Ask HN: What programming font do you use? by sp332 on Sunday August 24, 2014 @09:21AM (#8218501)
I like Ubuntu Mono, but on some screens (probably depending on antialiasing settings?) it looks too fuzzy and I switch to Inconsolata. It seems one of those two will look good in any setting. Or if I have to deal with no anti-aliasing, Proggy TT is a nice (small, ~9pt) monochrome font.
Re:Ask HN: What programming font do you use? by thegeomaster on Sunday August 24, 2014 @09:50AM (#8218552)
I used Inconsolata, Monaco, Source Code Pro, Consolas, Pragmata Pro, but in the end settled with Ubuntu Mono. I use it in Vim with the great Solarized color scheme, and it's a pleasure to look at.
Re:Ask HN: What programming font do you use? by cranium on Sunday August 24, 2014 @09:46AM (#8218545)
I use Ubuntu Mono 14pt in iTerm2 and kinda like using a font that big ! http://imgur.com/7Bdtuge
Re:Ask HN: What programming font do you use? by qzc4 on Sunday August 24, 2014 @04:36PM (#8219581)
What triangle character are you using there in your prompt? Sorry, but I haven't found a way to make it 'stick' to the background before it using any font (at least at 14pt).

Edit: OK, I found the character/theme you are using, but what version of Ubuntu Mono do you have? It won't handle that for me :/

Edit 2: I found a Powerline patched version, but that doesn't seem to work either… Maybe I will just switch back to Consolas

Re:Ask HN: What programming font do you use? by johncoltrane on Sunday August 24, 2014 @09:57AM (#8218562)
I've used Inconsolata exclusively (the original first [1], then the -dz variant [2], then the -g variant [3]) since 2002 or 2003.

I'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...

[3] http://leonardo-m.livejournal.com/77079.html

[4] https://github.com/mozilla/Fira

Re:Ask HN: What programming font do you use? by Jgrubb on Sunday August 24, 2014 @09:07AM (#8218470)
I always try out the others, but I always come back to Monaco.
Re:Ask HN: What programming font do you use? by Ruud-v-A on Sunday August 24, 2014 @08:13AM (#8218355)
Consolas. I have tried Vera Sans Mono and Source Sans, but nothing comes close to Consolas.
Re:Ask HN: What programming font do you use? by swah on Monday August 25, 2014 @01:14PM (#8222702)
Nobody mentions if they use Retina when recommending those "newer" fonts. I imagine most fonts that "only look good in 48pt" in my screen can be used for coding in Retina screens (never seen one of those).

BUT when using low-dpi monitors, very few get the hinting right, and bitmap (6x13 [1]) is king.

[1] http://www.chiark.greenend.org.uk/~sgtatham/fonts/

Re:Ask HN: What programming font do you use? by Ragu on Tuesday August 26, 2014 @04:38AM (#8226204)
I'm Mainly using google fonts. Its awesome and nice.Professional fonts are available at google fonts. Try it here https://www.google.com/fonts

We also tried font-family: 'Andika', sans-serif; http://courseeplus.com/aboutus/

Re:Ask HN: What programming font do you use? by bennyp101 on Sunday August 24, 2014 @08:14AM (#8218358)
I used Hermit (https://pcaro.es/p/hermit/) for a while when it first appeared, but now I use Source code pro from adobe (http://store1.adobe.com/cfusion/store/html/index.cfm?event=d...)

Otherwise I think it was Monaco way before those.

Re:Ask HN: What programming font do you use? by Tiksi on Monday August 25, 2014 @03:54AM (#8220959)
I use tamsyn (http://www.fial.com/~scott/tamsyn-font/) where I can. It's a bitmap font and looks great at small sizes. However since it's a bitmap font there's a few places that it can't be used.
Re:Ask HN: What programming font do you use? by swah on Monday August 25, 2014 @01:23PM (#8222762)
Interesting to me how the very clear bitmap fonts are so close to Terminus/linux fonts. Its almost like there is only one way to put the pixels.
Re:Ask HN: What programming font do you use? by wsloth514 on Sunday August 24, 2014 @11:04AM (#8218723)
Re:Ask HN: What programming font do you use? by bberrry on Sunday August 24, 2014 @09:01AM (#8218451)
I am hugely anal about this topic and I've tried all fonts mentioned at the time of this post. In the end, Consolas has racked up the most miles during my coding and Proggy Tiny for the output console (allows you to fit quite a lot). Don't get me started on color theme.
Re:Ask HN: What programming font do you use? by isxek on Sunday August 24, 2014 @08:46PM (#8220134)
> Proggy Tiny for the input console

I would humbly suggest trying either MonteCarlo [1] or its derivative, Tamsyn [2]. Certain characters (like the "@" symbol) look much better in either of these fonts.

[1] http://www.bok.net/MonteCarlo/ [2] http://www.fial.com/~scott/tamsyn-font/

Re:Ask HN: What programming font do you use? by swah on Tuesday August 26, 2014 @02:18PM (#8228634)
Tamsyn doesn't work for me in Sublime Text 3 - do you know why?
Re:Ask HN: What programming font do you use? by emilsoman on Sunday August 24, 2014 @10:57AM (#8218695)
Re:Ask HN: What programming font do you use? by Pephers on Sunday August 24, 2014 @08:34AM (#8218387)
Menlo Regular in 11 pt.

I use it in Sublime Text and also for my Terminal Monokai theme: https://github.com/Pephers/monokai-for-terminal-app

Re:Ask HN: What programming font do you use? by Prefinem on Sunday August 24, 2014 @08:41AM (#8218406)
Deja Vu Sans Mono
Re:Ask HN: What programming font do you use? by tokanizar on Tuesday August 26, 2014 @03:30PM (#8229013)
I just made a switch to Input (http://input.fontbureau.com). Before that, I used Source Code Pro.
Re:Ask HN: What programming font do you use? by GnarfGnarf on Sunday August 24, 2014 @08:41AM (#8218403)
Courier 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.
Re:Ask HN: What programming font do you use? by teamhappy on Sunday August 24, 2014 @08:53AM (#8218434)
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/
Re:Ask HN: What programming font do you use? by GnarfGnarf on Sunday August 24, 2014 @10:41AM (#8218659)
Courier Prime is a very attractive font. Unfortunately the leading (inter-line spacing, pronounced "ledding") is 18% bigger than Courier New. In a full screen of code, I lose 7 lines. That means less visible code, more scrolling up & down. I suppose there are font editors to adjust that.

Thanks for the suggestion anyway.

Re:Ask HN: What programming font do you use? by mattkrea on Sunday August 24, 2014 @08:22AM (#8218372)
https://github.com/andreberg/Meslo-Font

Meslo. Can't get enough of it.

Re:Ask HN: What programming font do you use? by 8ig8 on Sunday August 24, 2014 @09:27AM (#8218502)
Re:Ask HN: What programming font do you use? by seanmcdirmid on Sunday August 24, 2014 @08:48AM (#8218419)
Segoe UI. I will never use a fixed width font again, though I wish I could find something better then Segoe.
Re:Ask HN: What programming font do you use? by teebsd on Sunday August 24, 2014 @05:19PM (#8219715)
Re:Ask HN: What programming font do you use? by davewiner on Sunday August 24, 2014 @08:52AM (#8218426)
Geneva. I don't understand why programmers use monospace fonts, other than some kind of tradition.
Re:Ask HN: What programming font do you use? by GnarfGnarf on Sunday August 24, 2014 @10:58AM (#8218700)
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 "Programming Windows" uses fixed-pitch, as does Kernighan & Ritchie's "The C Programming Language".

Re:Ask HN: What programming font do you use? by davewiner on Sunday August 24, 2014 @11:01AM (#8218716)
I also use monospace font when publishing bits of source, it helps set it off from the rest of the text.

But in the code itself, this isn't a consideration.

Re:Ask HN: What programming font do you use? by thaumaturgy on Sunday August 24, 2014 @04:45PM (#8219605)
Because I work with data pretty often, and working with data pretty much requires a monospace font, and there's no reason for me to switch back and forth.

For example, cli mysql wouldn't be too much fun in Geneva. There's a nice visual hint between labels and data in lines of whois output, and that hint would be icky in a proportional typeface:

    status:      reallocated
    owner:       NETLINE PERU
    ownerid:     PE-NEPE4-LACNIC
Also, log files with columns like timestamp [ip] etc., and some particularly friendly configuration files.

And, although it's not very common, I occasionally use it as a typo-checker. If I have a function or a class where I can't easily abstract out some kind of repetition, then using a monospaced font with variables that are the same number of characters lets me visually see right away if I've mistyped something. I couldn't quickly find an example, but it was the first programming-specific monospace font thing that came to mind.

Re:Ask HN: What programming font do you use? by iopq on Sunday August 24, 2014 @09:12AM (#8218481)
I actually tried a programming font that is not monospace and it's not an issue. Left side is aligned the same anyway and I don't care if lines don't align on the right side.
Re:Ask HN: What programming font do you use? by yangyang on Sunday August 24, 2014 @08:59AM (#8218444)
Alignment probably more than anything, though obviously the necessity for that depends on the language and style.
Re:Ask HN: What programming font do you use? by davewiner on Sunday August 24, 2014 @11:00AM (#8218706)
Alignment of what??

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? by yangyang on Sunday August 24, 2014 @02:04PM (#8219180)
Consider aligned colons, something like

  {
    a  : 10,
    ab : 40
  }
If space and "b" are not the same width, that won't look great in a proportional font.
Re:Ask HN: What programming font do you use? by emikulic on Sunday August 24, 2014 @08:38AM (#8218394)
Terminus, Proggy, or Triskweline. I can't stand stroked fonts in a terminal.
Re:Ask HN: What programming font do you use? by grakic on Sunday August 24, 2014 @09:03AM (#8218460)
PragmataPro
Re:Ask HN: What programming font do you use? by antonios on Sunday August 24, 2014 @09:09AM (#8218474)
I'll second that. Very nice and well-hinted font, with quite a bit of unicode coverage as well. Definitely worth the money.
Re:Ask HN: What programming font do you use? by neonlex on Sunday August 24, 2014 @09:33AM (#8218518)
I used this font since more than a year. It's great but a week ago I started using Source Code Pro.
Re:Ask HN: What programming font do you use? by p3lim on Sunday August 24, 2014 @01:45PM (#8219128)
Been using Proggy for a long time, it's a nice, readable monospace font.
Re:Ask HN: What programming font do you use? by argimenes on Sunday August 24, 2014 @08:15AM (#8218360)
Cousine is currently my favourite ... quite readable in large and small sizes.
Re:Ask HN: What programming font do you use? by irickt on Sunday August 24, 2014 @09:30AM (#8218509)
Luxi mono, because it has the most attractive serifs I've seen.
Re:Ask HN: What programming font do you use? by chippy on Sunday August 24, 2014 @08:23AM (#8218374)
Monospace 9 (in Geany)

Liberation Mono (in Vim / Terminal)

Re:Ask HN: What programming font do you use? by Semaphor on Sunday August 24, 2014 @09:36AM (#8218522)
I used to use Anonymous Pro, now I use Consolas.
Re:Ask HN: What programming font do you use? by gjvc on Sunday August 24, 2014 @09:03AM (#8218457)
X11 10x20 since 1996
Re:Ask HN: What programming font do you use? by robinhoodexe on Sunday August 24, 2014 @10:16AM (#8218598)
Source Code Pro
Re:Ask HN: What programming font do you use? by dham on Sunday August 24, 2014 @09:27AM (#8218503)
Source Code Pro
Re:Ask HN: What programming font do you use? by h1d on Sunday August 24, 2014 @08:57AM (#8218440)
BPMono