Programming with proportional fonts is great
m-mz.posterous.com
Programming with proportional fonts is great
1–10 of 52 posts
Re: Programming with proportional fonts is great
#2Re: Programming with proportional fonts is great
#3When I tried this I liked it, too, but after a week or two gave it up: I write code for others to read, and, sadly, they will be reading it in a fixed-width font.
Re: Programming with proportional fonts is great
#4Ultimately, a space is a space in whatever font, so everything still lines up along the left margin nicely.
Re: Programming with proportional fonts is great
#5Re: Programming with proportional fonts is great
#6When I tried this I liked it, too, but after a week or two gave it up: I write code for others to read, and, sadly, they will be reading it in a fixed-width font.
I'm not sure I understand. Was using a proportional font changing the way you chose to format the code to such a degree that it annoyed people?
Re: Programming with proportional fonts is great
#7When I tried this I liked it, too, but after a week or two gave it up: I write code for others to read, and, sadly, they will be reading it in a fixed-width font.
I'm not sure I understand. Was using a proportional font changing the way you chose to format the code to such a degree that it annoyed people?
More examples: http://mysite.verizon.net/astronaut/vim/align.html#Examples
Of course, I really hope nobody's coding like that. I've never seen anyone who's been able to maintain that kind of formatting consistently.
I don't see any reason why proportional fonts shouldn't work for most programming styles. The problem is that most existing proportional fonts aren't very well suited for programming. At the very least, you need a font with unambiguous shapes for similar glyphs, like 1lI0oO`',.;:
Re: Programming with proportional fonts is great
#8"more text in an eye fixation" is not necessarily a good thing for reading code, because code is semantically more dense than regular text. I think one will not be able to absorb all information and therefore not get a faster reading experience due to re-reading. I find the fixed-width font example easier to read, because it appears not as cramped as the proportional-width example, and I can easier get an overview of…
A possible benefit of fixed-width: say you take a for-loop (which you can probably recognise even skipping over 95% of the characters) - now your brain wants to extract the indices at which it starts and ends: it seems to me a fixed-width font makes it easier to predict where you'll find the indices in the given line. (Not sure if that's how my eye-coordination really works, but it feels like it does...)
Re: Programming with proportional fonts is great
#9 (defn say [word]
(println "You said"
word))
This wouldn't be possible without fixed width. Now a lot of languages don't use that kind of indenting a lot, but in lisps it's mandatory.Also fixed width ensures that you can write code and it will lay in the same way on other computers, regardless of what other fixed width font they're using. That's a big big point i think, since code is most of the time a collaborative effort
Re: Programming with proportional fonts is great
#10Not to mention my editor of choice (TextMate) fails horribly with proportional fonts.
But then again, I used to feel the same way about anti-aliased programming fonts, and have since switched.
Currently Inconsolata 16pt anti-aliased is my font of choice. It helps to have a big screen...