Live data from Hacker News

Show HN: Coding Font – A game to find your favorite coding font

codingfont.com

171–180 of 222 posts

Re: Show HN: Coding Font – A game to find your favorite coding font

#172
post #103

I like the idea. Some thoughts: - Center the code samples on the page. So that your not unintentionally one over the other due to differences in viewing angle and vision ability. - Make all the fonts equal in height regardless of font point. Knee jerk reaction will be to go with the font that is closest to a persons normal preference. - Hide Font names and size/points. - Light theme and other color options. - Other p…

Include proportional fonts. I know I'm not the only one that uses one. Specially I use Input which has both mono and proportional versions and designed for programming.

You are not the only one. I've used proportional fonts exclusively for 10-15 years and will never go back to monospaced.

In the past I used Verdana, Georgia, and Trebuchet MS. That last one may seem like an odd choice, but I really like the way it renders on a high-DPI display, with thick readable strokes and easily distinguished "confusable" characters.

Trebuchet MS does have some flaws, so I started customizing it into what I call Trebuchet++. What got me started on this was the poor tilde in TMS. I swapped in a better one with FontForge, and then started experimenting with a few other things.

One thing that bothered me in particular about proportional fonts is that the underscore character is so much wider than a period. This creates the wrong visual grouping in something like this:

name_with_underscores.method_with_underscores()

The default spacing causes "underscores.method" to be bound tighter visually than the individual names on each side.

So I edited the underscore to add negative spacing while keeping the underscore itself fairly wide. And I added positive spacing around the period. This makes it more clear visually that "name_with_underscores" and "method_with_underscores" are individual names separated by the dot.

The next tweak I plan on is adding some positive spacing after a "(" and before a ")" and similarly with [] and {}. It makes me sad that modern coding standards prohibit spaces inside (), [], and {}, even though it makes so much sense logically to have spaces inside them.

If I can't fix my company's mandatory code formatter, at least with a proportional font I can adjust it to put just a bit of whitespace there.

Re: Show HN: Coding Font – A game to find your favorite coding font

#174
Blind mode is great! It'd be cool to be able to see the entire tournament bracket at the end -- I can only see the font that won, but the others were pretty close. I want to see when the font I normally use got knocked out.

Also, for really maximizing utility, it'd be cool to add variations of the same font but with different line-heights. I definitely voted against some fonts because they appeared "squished", but maybe a bit bigger line-height would make me prefer it.

Re: Show HN: Coding Font – A game to find your favorite coding font

#175

Earlier quoted context omitted.

No joke: my 70-something IBM veteran C++ class teacher in high school used Comic Sans in Visual Studio. Every time he shared his screen on the projector me and my buddy chuckled. He was so literal that it was either really good dry humor, or the dude genuinely liked coding in Comic Sans.

Maybe he had dyslexia and had worked out what is now relatively better-known, that Comic Sans is actually really readable for people with dyslexia-spectrum issues.

That's not necessarily true[0]. It's a widely repeated claim but there doesn't seem to be much actual evidence supporting it. Rather it seems that letter size and spacing are the main factor when trying to make text more readable to dyslectics.

[0]: https://www.tes.com/news/does-comic-sans-really-help-dyslexi...

Re: Show HN: Coding Font – A game to find your favorite coding font

#178
post #173

This is great! Love all the design suggestions here. Caught a bug, FYI: The font-family line always says the name of the font on the right in both columns. I.e. the left column says the name of the right column.

I think it is so you can compare the same characters in each font

Re: Show HN: Coding Font – A game to find your favorite coding font

#179
post #155

I spent months trying to find the specific font that: 1. I enjoyed looking at 2. Made discerning ambiguous characters when reading code easy. For example: l, 1, 0, O, Z, 2 I ended up creating my own custom build of Iosevka, now I can humble brag and have hipster cred that I have a font that is unique in the world (lol).

haha, I went even further. I designed a font called CSS Mono, and someone says it is like comic sans of coding fonts in Youtube comments, like in a bad way obviously. lol, check it out https://css-mono.wentin.net/

very cool shameless plug, I like playing around with new fonts every once in a while even if it's just for fun

Re: Show HN: Coding Font – A game to find your favorite coding font

#180

My favorite coding font is liberation mono, but I wish I understand truetype well enough that I could make it substitute -> with a proper right-pointing arrow, and !=, >=, I've tried editing the font myself using fontforge, but without any luck...

Those are known as ligatures. Ligaturizer[0], which copies Fira Code’s ligatures into any font, may be of interest. [0]: https://github.com/ToxicFrog/Ligaturizer

Oh wow, thanks, that's amazing! Totally trying that tomorrow!

Thanks again, kind stranger!

Post reply on HN