When it comes to programming fonts

A few considerations to help you pick the right font

☕
2 min readJan 26, 2018

Typefaces

Remember that you can use different weights (thin, light, regular, bold, black), proportions (proportional, monospaced) and sizes.

You don’t need to use multiple fonts, you can change weight, proportion and size.

You can use the same font for your terminal, text editor, desktop. Just be sure the font you pick have a monospaced typeface which I recommend for terminals and text editors.

Icons

Despite icons may seem superfluous, they have the power to convey meaning in just one character.

Prompt with active Virtual Environment in a Git repository with uncommitted changes.

If you are looking for a programming font, make sure it is listed in Nerd Fonts or Powerline patched fonts. Eventually you may have to patch it by yourself.

Numbers

Back in the days the letters O, I were also used for the numbers 0, 1. Luckily, we don’t use early typewriting machine any more, so make sure the letters look different from the numbers.

Arrows

The hyphen-minus dash is often used within the greater-than sign to draw arrows (->) but sometime it doesn’t look like one because the hyphen isn’t centered vertically.

Fibonacci Sequence in Python with static type checker.

If your font supports ligatures this is not a problem (but I find ligatures annoying).

Rant

If you screencast and share your session don’t use fancy fonts! Don’t use ligatures either! You want to make sure your code is easily readable by someone else…

--

--

☕
☕

Written by

#architect, #gis analyst, #computational designer, #tennis player, curious... somewhere between art and science.

No responses yet