There are hundreds of hundreds fonts but finding the right one is hard.
However, we can narrow down the search to one certain category: monospace(monospaced) fonts.
What is a monospaced font? It’s a font whose letters and characters each occupy the same amount of horizontal space. You can also find them as modern fonts.
So why bother using a monospace font? What are the benefits?
- Easier to read
- Similar characters are easily recognizable (like small letter L and big letter i)
- Spacing will always be the same
- Makes well organized and alligned code look even better (another reason to structure you code well)
Which are the more popular monospace fonts?
- Consolas – if you use Microsoft Software, chances are that you already have it. It’s used in almost every product they ship. But it’s not free if you don’t already have it from their products.
- Inconsolata-g – Inconsolata is considered by many, a free alternative to Consolas. The Inconsolata-g fixes some small “bugs” in the original Inconsolata font.
- Apple Menlo – I was going to include Monospace but it was retired by the Menlo. The Menlo is better no doubt!
- Meslo LG – a customized Apple Menlo. Actually it’s the only thing closest to Menlo you’ll get outside the OSX.
- DejaVu Sans Mono – a family of fonts. Used in OpenOffice. You can see it compared to Menlo
- Anonymous Pro – my favourite one. You can see it in details here and you can download it here
- Monofur – the Comic Sans MS of monospace fonts. I won’t lie, watching it feels very refreshing compared to the other fonts.
- Andale Mono – a good font, retired by Luicida Console. You can still find it in the web though.
- Ubuntu Mono – part of Ubuntu’s font family. It’s a great font and Ubuntu users use it on a daily basis.
- Droid Sans Mono – a font family. Even though it’s used by many, I’m still not quite sure which big software products use it as a main font.
- Terminus – used in Linux, MS-DOS, Command Prompt and other consoles as a main font. I won’t lie, I don’t like it, but some people may disagree so here it is!
- Envy Code R – you can see it compared to Source Code Pro. Overall both are great.
- Source Code Pro – one of Adobe’s better contributions to the IT world and I prefer it over Envy Code R
I hope I was helpful and made it easier for you to pick the right programming font. It’s not an easy task but it makes your life better afterwards!