Live data from Hacker News

Top Programming Fonts

hivelogic.com

51–60 of 174 posts

Re: Top Programming Fonts

#51
post #34

Earlier quoted context omitted.

I'm with OP on the issue --- proportional font for code. I find it easier to read. It goes out if its way to go out of my way. Why would proportional font be easier to read? No idea, honestly. May be related to fact I read a lot of non-code (documents and fiction) as well, and those almost always come in proportional fonts.

Indentation. Monospaced fonts allow much easier scanning of indentation levels. For Python this is crucial; for brace-delimited languages it's merely important for many of us.

I don't follow you -- `easier scanning of indentation levels'?

With proportional font, the left-hand whitespace used for indentation of your code looks exactly as with monospaced font. Only the text itself changes somewhat.

The width of tab/positions of tabstops has nothing to do with font itself; it's property (often settable) of the editor (or in rare case of the underlying terminal). May be expressed as `times the space width', but that's it.

Perhaps you mean aligning of function argument and/or parameters one below another, or indentation of parts of expressions one below another? That indeed can't work with proportional font IF the peers in your project use different font (size or shape) or tab-stop setting. Can't work with monospaced font either -- again, IF the peers on your project use different tab-stop settings. Which is prevalent, AFAIK. Some use 12'' netbooks, other use 23'' desktops. I've even known a guy who used a T221 [1]. One size does not fit all.

Nb., you may want to read up on http://nickgravgaard.com/elastictabstops/ if you like to align stuff that way. I don't like that idea though.

----

[1] http://en.wikipedia.org/wiki/T221

Re: Top Programming Fonts

#52
All of these fonts look cool, but in Eclipse on Linux (and other GTK-based text editors), the font renderer adds a few pixels to the width for bold text, which screws up the monospacing.

Has anyone been able to figure out a way to disable this?

Example from Eclipse: http://i.imgur.com/F3PhS.png

Re: Top Programming Fonts

#54
post #25

I don't wish to troll, but I see this a lot and I can't for the life of me figure out how anyone needs to give this any more thought than 'monospace, next question?', despite many explanations each time. Can someone shed some light on any advantages they feel are of a reasonably significant importance, and why? I mean, I can see plenty of advantages, but they're all so negligible they're not worth even the time it ta…

Generally speaking - most of the monospace fonts I see are totally fine and I really don't care about the differences between the 10 he mentioned as being good. But when I go to windows and run cmd.exe I'm blown away by just how ugly the font they use there is.

Re: Top Programming Fonts

#56
post #31

I'm still using 7pt Dina, a monospace bitmap font, in all console windows and my IDEs - all except Visual Studio 2010, that is, which doesn't properly support bitmap fonts (leading me to avoid using it whenever possible).

> ... all except Visual Studio 2010 ...

I'm also a fan of Dina and it's been the first change I make to any IDE or programming text editor I use since I found it years ago. I recently came across this when I started using IntelliJ IDEA and needed a TTF font: http://chrisrickard.blogspot.com/2010/03/dina-font-for-visua... . Quote from the page:

    *bonus* I found that this font can also be used with any .NET application
    (WPF or Windows Forms) that normally can't handle raster fonts.
Screenshot: http://2.bp.blogspot.com/_n07tuwMNUu8/S603jWw9ZVI/AAAAAAAAAK...

And for anyone else curious here's the original font:

http://www.donationcoder.com/Software/Jibz/Dina/

Re: Top Programming Fonts

#57
post #25

I don't wish to troll, but I see this a lot and I can't for the life of me figure out how anyone needs to give this any more thought than 'monospace, next question?', despite many explanations each time. Can someone shed some light on any advantages they feel are of a reasonably significant importance, and why? I mean, I can see plenty of advantages, but they're all so negligible they're not worth even the time it ta…

Generally speaking - most of the monospace fonts I see are totally fine and I really don't care about the differences between the 10 he mentioned as being good. But when I go to windows and run cmd.exe I'm blown away by just how ugly the font they use there is.

I'm blown away that you can change the font for cmd.exe, but you only get one other option: Lucida Console. Still, it beats "Raster Fonts".

Re: Top Programming Fonts

#58
post #12

I've been using Anonymous Pro: http://www.ms-studio.com/FontSales/anonymouspro.html mentioned in a followup to that article: http://hivelogic.com/articles/anonymous-pro-programming-mono...

Wow, thanks! I've been looking at some of the fonts (mainly Inconsolas-dz, Anonymous Pro, Droid and Vera) and this is a great font. Love it!

Re: Top Programming Fonts

#59
I experiment with this a lot, my fonts folder is full of fixed width fonts. But I somehow always go back to Monaco (11pt) white on black background. This is using TextMate, non anti-alias. (Example: http://tinypic.com/r/2hnayq8/7 ) Perhaps TextMate is too limited in this respect (it doesn't handle proportional fonts well).

Re: Top Programming Fonts

#60
post #26

I say this every time this discussion comes up but I do feel it bears repeating: I switched away from monospaced a while ago and I am never going back. I encourage you to try something like Verdana for a week just to see how it feels.

My IDE is misconfigured, and for html/css code uses Arial, or some other proportional font. It's just painful to watch! The non grid alignment, randomness, just makes it more distracting to me. Perhaps if I was exposed to it for a long er period of time, a week as you suggested, this uneasiness will slowly fade. But, let me ask you: What's that you find so good about it? More content in less space? Why won't you go b…

Aesthetics -- nothing else.

As for the grid alignment, I never make block-style comments and normal indentation works just the same. I am not sure what you mean with "randomness".

Post reply on HN