Live data from Hacker News

Input: Fonts for Code

input.fontbureau.com

41–50 of 136 posts

Re: Input: Fonts for Code

#42
post #38

Recently found the Golang fonts. https://blog.golang.org/go-fonts Monospaced with serifs - totally blew my mind. I am using it since then and it is the best font for me I have tried so far.

Wow, that's just like how code is typeset in very old books. I guess printers in the 1980s had one up on us.

Re: Input: Fonts for Code

#43
post #23

To be honest, I never understood all these discussion about "coding fonts". They pop up every now and then here on HN but it always seems like bikeshedding to me. Don't get me wrong - I'm aware that there are some folks who may have a vision impairment or some other reason where it really matters. But apart from that, I've been programming for decaded on many different computer systems with many different fonts, and…

There are instances where font matters, and I go back to TurboC on my 8086 and Fortran 'scards' on a VMS mainframe + terminal, so I'm not a whiny mod-crazy hipster. > Fonts Creating Bugs: Some fonts are more prone to errors. Lower case L vs number one, zero vs. capital O, braces vs parens, lowercase g vs 9. Go look at old Unix fixed fonts, and even courier and you can see how hard it is to distinguish. (Unix '10x7' w…

> What kind of savage codes with a proportional font?

I did for some time. I only switched back because our coding standard limits the length of a line and that is hard to check with a proportional font.

I honestly don't get why source code needs a fixed character grid.

My prefered code formatting doesn't require lining up things using spaces in the middle of the line. If things need to be lined up, then I put them in the beginning of the line with the apropriate indentation. This way anyone can choose any font they like and make use of the increased readability of proportional fonts.

Re: Input: Fonts for Code

#44

Yet to find something that suits me better than Fira Code. It's a decently good-looking font with ligatures . I'm a sucker for ligatures.

Have you considered monoid? It’s a fantastic font with ligatures. https://larsenwork.com/monoid/

I've looked at it just now. Found it too... skrawny? The lines are too thin and too jagged – the latter probably a consequence of the former. You can see how it differs from other proposed fonts in this thread.

Re: Input: Fonts for Code

#45
post #35

Yet to find something that suits me better than Fira Code. It's a decently good-looking font with ligatures . I'm a sucker for ligatures.

I used Fira because I felt the same about ligatures, until I found Hasklig. It has similar ligatures, but the overall font is better imo. https://github.com/i-tu/Hasklig

Fira Code's author says Hasklig was the inspiration behind his work.

Re: Input: Fonts for Code

#47
post #39

I can't find anything better than Monaco for myself. That's something about it aesthetically pleasing which I can't quite explain. Fira Code probably comes second.

What about SF Mono? I liked it enough to port it to Windows.

I second SF Mono, subjectively it is the most aesthetically pleasing, well proportioned and just plain beautiful to look at.

With that, the entire San Francisco type family is extremely well crafted. I just wish it was openly available even for a fee. But, that makes it even more irresistible and valuable for Apple.

Re: Input: Fonts for Code

#48
post #8

Been using Deja Vu for such a long time, hard to change. Seeing as this has a slashed or dotted zero really makes this a contender. So many “code” fonts don’t seem to get the zero right.

I'm a Deja Vu guy myself, but something (I think yesterday) here had me actually considering switch. https://blog.golang.org/go-fonts Same metrics as Deja Vu, but with serifs! Shame coverage is so low.

It's the Unicode coverage that keeps me with DJV Mono - working a lot with document-focused XML, the fewer little white boxes turn up in my editor the better. DJV Sans ended up leaking into my desktop over the years and now I can't imagine going without it.

Re: Input: Fonts for Code

#50
post #23

To be honest, I never understood all these discussion about "coding fonts". They pop up every now and then here on HN but it always seems like bikeshedding to me. Don't get me wrong - I'm aware that there are some folks who may have a vision impairment or some other reason where it really matters. But apart from that, I've been programming for decaded on many different computer systems with many different fonts, and…

Likewise, but I have just come to accept that although I don't care what font I code in (just disambiguate the look-alikes), lots of others do, in nauseating detail. So I just lurk on the conversations as I might on plenty of other nuanced tech fascinations that don't fascinate me.
Post reply on HN