Live data from Hacker News

Lesser Known Coding Fonts

vfoley.xyz

11–20 of 250 posts

Re: Lesser Known Coding Fonts

#11
post #5

Earlier quoted context omitted.

As someone who's never used a variable width font for writing code, I have to ask why would you want that?

The kerning is easier in your eyes, and is also much more space efficient. The only drawback is the inability to do ascii art.

And aligning text in some indentation styles

Re: Lesser Known Coding Fonts

#12
post #5
post #2

There should be more variable-width coding fonts.

As someone who's never used a variable width font for writing code, I have to ask why would you want that?

I use Geneva for coding. Variable width typefaces are easier on my eyes. I find that my page-scanning more readily gets lulled into laziness when using fixed width. And variable width keeps me from doing goofy alignment games with blocks of similar text (e.g. lining up the `=` signs in a list of assignment operations) that I invariably regret later.

Re: Lesser Known Coding Fonts

#13
I see Input Mono is mentioned, but I actually really like using Input Sans, also from Font Bureau. It's a proportional coding font. I feel like I'm living in the future.

You can get it here: https://input.fontbureau.com

And amazingly, you can personalize your font on download, such as choosing dotted vs slashed zeroes.

Not free, but free for personal, non-commercial use. (Check the terms)

Re: Lesser Known Coding Fonts

#14
post #5

Earlier quoted context omitted.

As someone who's never used a variable width font for writing code, I have to ask why would you want that?

The kerning is easier in your eyes, and is also much more space efficient. The only drawback is the inability to do ascii art.

Maybe it's because I've only used fixed-width fonts for programming and have gotten used to it - but I find fixed-width fonts significantly easier on the eyes.

Re: Lesser Known Coding Fonts

#20
post #5

Earlier quoted context omitted.

As someone who's never used a variable width font for writing code, I have to ask why would you want that?

The kerning is easier in your eyes, and is also much more space efficient. The only drawback is the inability to do ascii art.

While I wouldn't say it's THAT significant, there is one other advantage to fixed-width fonts that I've experienced. Due to the fact that they align vertically, sometimes they expose mistakes if you're constructing data in a table-like fashion. Or when you have a bunch of copy/pasted lines that differ only in the parameter values. Like, "Hey wait a minute... this line is 1 char wider than the previous one. Oh, whoops, I fat-fingered something there".

I wish I had more specific examples and could quantify it better, but I know I've caught quite a few errors this way.

Post reply on HN