Programming Fonts – Nine Fonts Compared

Introduction

The best programming font I have come across so far is Terminus. I use it for everything except printed documents.

Unfortunately, there are at least the following shortcomings of Terminus:

Hence, from time to time, there is need for some TTF/vector font instead. Given that there are tons of other programming fonts it should not be hard to find a proper substitute except it seems incredibly hard to get the details right. Maybe I am just too much used to Terminus.

The screenshots on this page were created using theme Night, font size 16 and the C code from https://github.com/m7a/bo-z80-ti84plus-trtotp/blob/master/trtotp.c on the following page: https://www.programmingfonts.org. The exception is Monoid which has been tested at font size 15 because 16 was very wide.

Disclaimer: I collected the fonts I liked most here, but your preferences might be different. I suggest browsing https://www.programmingfonts.org and trying it with some code of yours and a theme that looks similar to the one you are normally using.

The following table compiles a list of fonts that look OK. None can beat Terminus so far, but some come pretty close and might be chosen if at any future time, venerable bitmap fonts are banned from ever more modern applications and displays.

Font Samples

ConsolaMono Fairfax HD Fifteen
Monoid mononoki Iosevka
PT Mono Share Tech Mono Terminus (bitmap version!)

Note that you do not get the bitmap Terminus on https://www.programmingfonts.org by default. I downloaded a HTML variant of the page and edited it by hand to replace the (vector-based) web font with the system-installed one to make the comparison screenshot.

Metadata

OFL := SIL Open Font License, Other := See linked homepage

Name License Homepage
ConsolaMono OFL https://fontlibrary.org/en/font/consolamono
Fairfax HD OFL http://www.kreativekorp.com/software/fonts/fairfaxhd.shtml
Fifteen OFL https://fontlibrary.org/en/font/fifteen
Monoid OFL/Expat https://larsenwork.com/monoid/
mononoki OFL https://github.com/madmalik/mononoki
Iosevka OFL https://typeof.net/Iosevka/
PT Mono Other https://company.paratype.com/pt-sans-pt-serif
Share Tech Mono OFL https://fonts.google.com/specimen/Share+Tech+Mono
Terminus OFL http://http://terminus-font.sourceforge.net/

A subset of the fonts is available in Debian:

Name Debian Package
Monoid fonts-monoid
mononoki fonts-mononoki
Terminus xfonts-terminus
PT Mono texlife-fonts-extra

Discussion

So far, I like the following ones best:

Here are my main criteria for distinguishing the good ones from the better ones:

Some Non-Terminus Favorites at Random Dates

2021-10-10 Share Tech Mono
2022-01-12 PT Mono (for practical reasons, see below)

Fonts and UTF-8-Art

This section was added 2022-01-12.

╔════════╗
║ TEST   ║
╟────────╢
║ BOX    ║
╚════════╝

=> From an ASCII-art-compatibility point of view one should select one of Fairfax HD, PT Mono, Iosevka or Terminus.

See Also

To test fonts:

Fonts to try out


Ma_Sys.ma Website 5 (1.0.2) – no Flash, no JavaScript, no Webfont, no Copy Protection, no Mobile First. No bullshit. No GUI needed. Works with any browser.

Created: 2021/05/20 22:02:34 | Revised: 2024/09/21 13:18:17 | Tags: fonts, terminux, programming, kb | Version: 1.0.1 | SRC (Pandoc MD) | GPL

Copyright (c) 2021, 2022 Ma_Sys.ma. For further info send an e-mail to Ma_Sys.ma@web.de.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.