4 ms·
I've never understood the attraction of non-monospaced font in an editor. Especially when you code, where you basically read as much in the vertical direction
by ur-whale 8y ago
I've never understood the attraction of non-monospaced font in an editor.
Especially when you code, where you basically read as much in the vertical direction than in the horizontal.
Monospaced fonts allows for super-fast vertical pattern matching on the code which helps your brain tremendously.
To me, non-monospaced font in an editor is exactly as if each letter in a line of text was placed at a somewhat random height, a very unpleasant experience.
- ealhad 8y agoI don't understand. Doesn't vertical pattern matching works the same for monospaced and proportional fonts? The same words are still the same size.
- ur-whale 8y ago>The same words are still the same size Try to properly vertically align code for a matrix containing expressions with X's and Y's in a non-monospaced font.
- ealhad 8y agoI see. That's kinda specific though, and not all code has matrices in it. But I get your point.
- ur-whale 8y ago> not all code has matrices in it It's not just matrices. An array of colors in hexadecimal is a good example of something that will make your eyeballs bleed with a non-monospaced font. I also tend to do matrix-style aligment with complex expressions that have repetitive patterns.
- ealhad 8y agoI see. I tried using a proportional font for ~15 minutes and didn't encounter these problems, I guess I'll try a bit longer and keep your point in mind.
- pmoriarty 8y ago"I've never understood the attraction of non-monospaced font in an editor." I need to use some special characters which are only available in certain proportional fonts. They are simply not available in any monospace fonts, so it's impossible for me to do what I need to do without them. Even if those characters were available in a monospace font, I just prefer the look of some of these proportional fonts, so would prefer to use them for purely aesthetic reasons as well. This is not for coding purposes, for which I do prefer monospace fonts, for alignment reasons. But if it was possible to get monospace-like alignment with proportional fonts, and a clear distinction between the characters 0O1l;:,.`', then I might prefer them for coding as well, since there seem to be a much greater choice of proportional fonts than monospace fonts. On the other hand, I'm pretty happy with using Inconsolata for programming, so I'm not sure I'd switch. But it'd be nice to have the choice.
- ur-whale 8y agoFrom a comment I made below: How much would you like to read non-monospace code with an array of colors encoded in hexadecimal ?
- pmoriarty 8y agoAs I said, for coding I'd only use a proportional font if I could get monospace-like alignment from it (and if I could distinguish the 0O1l;:,.`' characters in it as well). Effectively, this means I'm stuck with using only monospace fonts for programming. This is a limitation that I wish I didn't have, as there are far more proportional fonts out there than monospace fonts.
- captainmuon 8y agoIn many proportional fonts, numbers and certain punctuation, like "#", have the same width. In others, you can explicitly select "table figures" to get this effect.
- earenndil 8y agoWhy not use fontforge to grab the characters out of the proportional font and add them to the monospace font?
- qznc 8y agoYes, your editor needs to support elastic tabstops. http://nickgravgaard.com/elastic-tabstops/ http://nickgravgaard.com/elastic-tabstops/ The main reason why I stopped using a non-monospace font is that elastic tabstops are not available everywhere and thus no real codebase uses it. I minor second reason is that I did not find a coding-focused non-monospace font. For code you have to clearly distinguish I and l and 1, O and 0, etc. Nobody optimizes non-monospace fonts for that. It seems that there is now at least one such font: http://input.fontbureau.com/info/ http://input.fontbureau.com/info/