Live data from Hacker News

Lesser Known Coding Fonts

vfoley.xyz

41–50 of 250 posts

Re: Lesser Known Coding Fonts

#41

Every thread about programming fonts is not complete without mentioning the wonderful website https://app.programmingfonts.org (no affiliation, I just find it really useful) which lists all the free programming-related fonts with live preview (for example every single font from the article, and every one mentioned so far in every comment in this thread is already there in the app) - it allows quick one-click preview…

Thank you!!!! I've been looking for something like this for some time now.

Re: Lesser Known Coding Fonts

#42
It’s good to see that many of these fonts distinguish well between open/close quote characters - this is a personal bugbear of mine. For example, Input Mono fails for me on this aspect. Hyphens and the two dashes are usually problematic, too - unfortunately, no examples of those in this post.

Re: Lesser Known Coding Fonts

#44
post #10
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?

Variable width fonts are generally more readable, which is why they’re generally used for prose. Fixed-width fonts allow for easy tabular rendering in a text editor. Some programming styles use this heavily but it’s not universal. Particularly, if you rely on line-by-line blame in source control, alignment changes can make it harder to find the commit where the most recent semantic change happened.

Traditional fonts even had non-lining figures, with varying heights for easier readability. Modern-style figures were only really used for tabular display, or with content written in uppercase/title-case. (Of course, it's hard to support this kind of complex text styling when editing plain-text files that are going to be fed to a compiler, or some other text-processing step.)

Re: Lesser Known Coding Fonts

#45

Every thread about programming fonts is not complete without mentioning the wonderful website https://app.programmingfonts.org (no affiliation, I just find it really useful) which lists all the free programming-related fonts with live preview (for example every single font from the article, and every one mentioned so far in every comment in this thread is already there in the app) - it allows quick one-click preview…

All free fonts I think? It doesn’t list for example Dank or Operator.

Re: Lesser Known Coding Fonts

#46
post #45

Every thread about programming fonts is not complete without mentioning the wonderful website https://app.programmingfonts.org (no affiliation, I just find it really useful) which lists all the free programming-related fonts with live preview (for example every single font from the article, and every one mentioned so far in every comment in this thread is already there in the app) - it allows quick one-click preview…

All free fonts I think? It doesn’t list for example Dank or Operator.

That's probably the case, thank you, I should have mentioned that.

Re: Lesser Known Coding Fonts

#47

I have tried lots of different coding fonts for fun (and when I change fonts, it just feels like using a brand new computer :-)), but my go-to font when I just don’t want to think what I’m gonna using is SF Mono, from the San Francisco fonts by Apple[0]. It blends well with the macOS system fonts, and it’s great. [0] https://developer.apple.com/fonts/

SF Mono is awesome. Using it for a long time.

The link you posted https://developer.apple.com/fonts offers to download and install .dmg -> .pkg. I usually install SF Mono via /Applications/Utilities/Terminal.app/Contents/Resources/Fonts. This folder contains all SF Mono fonts in .otf format. If you open them and install, it vill be available everywhere. You can copy those files and install it on Windows or Linux computer.

Also this extension is musthave: https://chrome.google.com/webstore/detail/advanced-font-sett... I set SF Mono as default monospaced font for chrome. IDK why ugly Courier font is still default in many software.

Re: Lesser Known Coding Fonts

#48
post #37
post #2

There should be more variable-width coding fonts.

The latest release of Iosevka has a "quasi-proportional" variant called Iosevka Aile which I really, really like. Here's a 3200x1800 screenshot with some code in Emacs. https://i.imgur.com/LdzBmpx.png The kerning is not as tight as in a real proportional font. It's a bit more spacious and regular so that fixed width tabular layouts still look relatively decent.

The original image might’ve been 3200x1800 but it sure ain’t on imgur, unless I’m missing an obvious ‘view raw/original image’ option...

Re: Lesser Known Coding Fonts

#49
post #10
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?

Variable width fonts are generally more readable, which is why they’re generally used for prose. Fixed-width fonts allow for easy tabular rendering in a text editor. Some programming styles use this heavily but it’s not universal. Particularly, if you rely on line-by-line blame in source control, alignment changes can make it harder to find the commit where the most recent semantic change happened.

But source code is very different from prose. Are there any studies on fixed-width vs. proportional readability specifically when it comes to programming?

Re: Lesser Known Coding Fonts

#50
post #40

Give me Consolas or give me death. I have tried many programming fonts. I love articles like this that expose to me to new, fun things to try. But alas Consolas is King.

I used to think this, until I went on my quest to find a better fonts. Microsoft did a really good job on Consolas to make it look great on Windows. Unfortunately a lot of coding fonts dont hint well on Windows, or only look good in hiDPI... Eventually I settled on Droid Sans Mono, which I modified to have a slashed Zero.

Yup. These days a shocking number of people never test on Windows or a 1080p monitor.

Windows is my primary dev environment. I don’t think many people are even trying to look good there. So I’m not sure Consolas will ever be dethroned. Not for me at least.

Post reply on HN