Skip Navigation

What is your favourite font for code ?

lemm.ee /post/14701217

Mine is mononoki

https://madmalik.github.io/mononoki/

It is a very minimal clean looking monospace font with support for ligatures. What is yours ?

106

You're viewing a single thread.

106 comments
  • I was using Inconsolata for about 5 years, then switched to Inconsolata-g when that came out, for another 5 years. But it's a pretty old font and is TrueType and it's hinting is bad, so doesn't render well on Linux and it misses out on a lot of new font features.

    In 2019 I went hunting for a new favourite font, and tried out a whole bunch, giving each one a week in my IDE to really get to know it. During that time I realised I had a bunch of basic requirements for a font that some do better than others:

    • Similar characters should be distinct: eg, uppercase O and number 0. Uppercase I, lowercase l, and number 1. It's weird how many popular coding fonts fail to make these clear.

    • Not too wide, and not too narrow. You'd think monospace fonts are all around the same size horizontally, but a standard 80-column slab of code can vary greatly in screen space width depending on the font, some are much too wide. Consolas is an example that is too wide. I like to have the option to tile three code panes side-by-side on a 1080P screen.

    • Easy to read. For some reason a lot of coding-specific fonts affect my ability to quickly and easily read the code, and some give me a headache.

    I realised that my use of Inconsolata for such a long time in the early stages of my career definitely shaped my preferences. I was looking for something similar to Inconsolata. That was when I discovered Fantasque Sans Mono. It's a kind of weird looking font, maybe a bit too playful for a serious coding font, but I found I could read and parse code much faster (maybe it helps with mild dyslexia?), each letter is very distinct from every other. It has elements of handwriting, it has elements of a dyslexic font, it has similarities to Inconsolata.

    I've been using Fantasque (with Nerdfonts mixins) for 4 years now. Since then there has been a renaissance of code fonts, like Jet Brains Mono, and Fira Code. I like those, they are good fonts, but I keep going back to Fantasque, it feels so comfortable to use.

    • Fantasque was my favourite before Recursive. Kinda miss it still ...

You've viewed 106 comments.