1. 28
  1. 7

    I feel like Go Mono is never on these lists and I’m always surprised. It’s a beautiful font.

    1. 2

      The regular Go font is also a very good coding font. It got me into proportional fonts for coding, though it’s pretty much the only one out there. I ended up compiling a custom Iosevka variant. It’s proportional but the glyphs are like any coding font, and it has all the coding ligatures.

      I can fit so much on the screen and it’s way easier on the eyes.

      1. 2

        I remember (trying to learn C++) from Stroustrup’s book, and he broke with tradition by having a proportional font for code examples. It was actually pretty nice.

        Regarding that book, my main takeaways was the author’s lengthy and well-written defences of the design of C++.

      2. 2

        Another vote for Go Mono. We who like monospaced typefaces with serifs seem to be in a minority.

        1. 2

          I still love Sun Gallant Demi. A nice, sturdy, serifed font and a lot of fond memories.

          1. 2

            Oh yes! It looked so damn crisp on the boot screen of Sun workstations.

            I was a fan of the 9x15 X font, back in the day.

      3. 3

        Coding font has to meet quite lot of standards these days … at least for me:

        • not have too much empty space between lines (vertical efficiency)
        • not to be too wide (horizontal efficiency)
        • have Nerd Fonts variant so one can use icons in terminal with exa(1)/lsd(1) commands
        • be actually good looking and readable
        • be free for commercial and personal use
        • will not have size/scaling problems [*]

        For me the fonts that currently fulfill these needs are (in order from best to less best):

        • Consolas
        • Ubuntu Mono
        • IBM Plex Mono

        Notable fonts that did not get into the podium:

        • Inconsolata
        • Fira Code/Fira Mono
        • Monofur

        Bonus section - non-antialiasing fonts that are also worth mentioning:

        • xterm*font: -*-clean-*-*-*-*-*-*-*-*-*-*-iso8859-2
        • xterm*font: -*-fixed-medium-r-*-*-10-*-*-*-*-*-iso8859-2


        Its actually hard to describe it but if I will give you an example. When you setup Consolas or Ubuntu Mono size 11 font in xterm(1) they have ‘some’ size but when you setup Monaco font with size 11 then its a lot larger and I need to set it to size 10 to be ‘comparable’ to the other two. In this definition Monaco does not fulfill my needs because it has size/scaling problems.

        1. 2

          Wow, I like Monofur but I’d not see it as a “serious” programmer typeface. It’s a bit too way out there.

        2. 3

          It is hard to compare: not all screenshots use the same font size or line height. Moreover, they are rendered in a super high resolution, then downscaled. I suspect this makes some font look bolder than they should.

          1. 2

            The previews on this site are so blurry as to be unusable (Windows 10, Chrome, 1920x1200 resolution).

            1. 2

              Bizarrely… if I right click an image and choose “view image”, I see a blurry image which is 1200 × 900 pixels with this weird address: https://res.cloudinary.com/css-tricks/image/fetch/w_1200,q_auto,f_auto/https://coding-fonts.css-tricks.com/screenshots/hasklig/js-dark.png

              If I remove the first half of the url to get https://coding-fonts.css-tricks.com/screenshots/hasklig/js-dark.png, I see a larger, 1600 × 1200 pixel image which isn’t blurry.

              Also, whatever program was used to render the text as images doesn’t appear to support ligatures, which is unhelpful for the fonts which use ligatures.

              Not a very good showcase for fonts if it doesn’t show their features properly and gives the impression that they’re blurry.

              1. 2

                blurry in Safari as well, not Firefox though

            2. 2

              I was a long time Fira Code user but I switched to Cascadia Code a year ago and love it

              1. 1

                What’s better about Cascadia that you love so much?

                1. 1

                  It’s “chunkyness” if that makes sense. It is a bit heavier than others. Also I use the variant with ligatures, which look really nice.

                  1. 1

                    It does make sense!

                    Although for me that very characteristic makes it harder to read.

              2. 2

                Color me strange, but I’ve often gone through spells of using Comic Sans (and/or Comic Neue, now), to change the visual pace of coding.

                1. 2

                  I use a custom variant of the Inter (sans-serif, proportional) font with wider spaces https://github.com/colelawrence/inter

                  I wonder why proportional fonts for coding are so rare, they have excellent horizontal efficiency and high legibility.

                  1. 2

                    There’s a massive under-examined set of assumptions when it comes to typefaces used for development. For example, the numeral zero doesn’t really need a dot or slash to be distinguished from capital O, but I’ve seen typefaces dismissed because the zero doesn’t look enough like the empty set symbol ∅.

                    This is actually the second time today I’ve come across someone using a proportional typeface. What editor are you using?

                    1. 3

                      I use VS Code (TypeScript/Rust development) it works well with my tweaked font, because it supports extra character letter-spacing (which IntelliJ does not 😯).

                      1. 2

                        (I’m the other guy) I use Rider (Jetbrains) and VSCode. They allow you to set a separate font for the terminal which is necessary cause it breaks with a proportional font, and Iosevka also has the regular monospace so that’s good.

                        I code mainly in C#, Typescript, and sometimes Java. The ligatures have always worked for me. The very few times I needed to work with some spaces-alligned text file I could quickly change the font of VSCode, no big deal.

                      2. 1

                        Thank you for linking this! I use a custom proportional Iosevka. Did you fork/host your custom anywhere? I’d like to compare.

                        My custom is here https://github.com/VulumeCode/Iosevka/tree/custom-aile-code/dist/iosevka-aile-code/ttf

                        1. 1

                          I only have the download from my master Fonts folder, so I enabled link sharing for InterCode for now https://drive.google.com/folderview?id=1fpo_pAzuchl3Ms2q7t6-uwVWfQ09LHqj

                          Using my editor with the font: https://www.loom.com/share/51d10a789ccf4f24a87c8de5cfc2c591

                          cc @gerikson