What is your favourite font for code ? (lemm.ee)
from meter_kilo@lemm.ee to programming@programming.dev on 12 Nov 2023 19:33
https://lemm.ee/post/14701217

Mine is <img alt="mononoki" src="https://madmalik.github.io/mononoki/">

madmalik.github.io/mononoki/

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

#programming

threaded - newest

half_built_pyramids@lemmy.world on 12 Nov 2023 19:41 next collapse

Consolas Bold

Gur814@lemmy.world on 12 Nov 2023 19:43 next collapse

I like Fira Code a lot.

smoof@kbin.social on 12 Nov 2023 20:18 next collapse

I used to use Fira Code until I found Iosevka.

shnizmuffin@lemmy.inbutts.lol on 14 Nov 2023 01:59 collapse

I was using Anonymous Pro before discovering Fira Code.

ripe_banana@lemmy.world on 12 Nov 2023 19:46 next collapse

I like hack. I use it for everything.

nezbyte@lemmy.world on 12 Nov 2023 20:07 collapse

Hack is my go to font as well, I’m sure part of that is due to it being well supported and easy to remember. Plus the lack of spaces in the name makes for less escape characters or quotes when defining it in config files.

The small but critical feature I look for in a font is a clear differentiation between the characters I, l, and 1.

ripe_banana@lemmy.world on 12 Nov 2023 21:16 next collapse

I think my love of the font comes from how comfy everything feels. A lot of nice curves 😉.

A_A@lemmy.world on 12 Nov 2023 21:17 collapse

differentiation between the characters I, l, and 1. differentiation between the characters I, l, and 1.

… and betweem “rn” and “m” … and betweem “rn” and “m”

tun@lemm.ee on 13 Nov 2023 04:16 collapse

I also try o, O, 0, *, {

t, f, g, a, y, k, w, W to quickly check the styles

hallettj@beehaw.org on 12 Nov 2023 19:57 next collapse

That’s a very nice one! I also enjoy programming ligatures.

I use Cartograph CF. I like to use the handwriting style for built-in keywords. Those are common enough that I identify them by shape. The loopy handwriting helps me to skim over the keywords to focus on the words that are specific to each piece of code.

<img alt="sample Haskell code with a handwriting font variant for the words “let”, “in”, and “where”" src="https://beehaw.org/pictrs/image/424ddba1-c8f4-4431-9c8a-80161dd08eed.webp">

I wish more monospace fonts would use the “m” style from Ubuntu Mono. The middle leg is shortened which makes the glyph look less crowded.

meter_kilo@lemm.ee on 12 Nov 2023 20:11 collapse

Cartograph looks good. Ubuntu mono is also a great font but I guess it doesn’t support ligatures.

evatronic@lemm.ee on 12 Nov 2023 19:58 next collapse

fonts.google.com/specimen/Source+Code+Pro

Source code pro for quite some time.

HakFoo@lemmy.sdf.org on 12 Nov 2023 20:01 collapse

Modern DOS 8x16. I like the nostalgic look and boxiness.

bizdelnick@lemmy.ml on 12 Nov 2023 20:00 next collapse

Terminus.

To be honest, I don’t care. If I dislike a default font somewhere, I change it, but there’s no a favorite one. The font must be readable, that’s all.

PoisonedPrisonPanda@discuss.tchncs.de on 12 Nov 2023 20:46 collapse

that’s all

Well buddy you are very brave sharing such, almost rude, simplicity in a monospace font circle jerk.

[deleted] on 12 Nov 2023 20:04 next collapse

.

midnight@kbin.social on 12 Nov 2023 20:10 next collapse

Iosevka.

meter_kilo@lemm.ee on 12 Nov 2023 20:15 collapse
revoopy@programming.dev on 12 Nov 2023 20:11 next collapse

Jetbrains Mono with Nerd Fonts

adamnejm@programming.dev on 12 Nov 2023 20:16 next collapse

JetBrains Mono all the way.

There’s also a new kid in town - Monaspace, its texture healing feature is pretty interesting. I might give it a try later.

technojamin@lemmy.world on 12 Nov 2023 20:25 next collapse

As a JetBrains Mono user for the past couple of years, I used Monaspace all day this past Friday to try it out, and it was not for me. The oval shape of JetBrains Mono glyphs is so aesthetically pleasing to me, and I don’t think I’d be able to switch to another font that doesn’t have similar styling.

tun@lemm.ee on 13 Nov 2023 04:10 next collapse

Monaspace AUR-packaged fonts do not registered as monospace font in ArchLinux.

Though Konsole can be configured to use the font, Kitty does not recognize it. Manual install in macOS works for Kitty.

I like Neon and Argon variants of Monaspace.

My favorite was PragmataPro (not free) but it has different glyphs from Nerd Fonts. Similar ones are Iosevka, Victor, Mplus 1 code. Now new favorite is JetbrainsMono NF.

SF code, Fira Code are also in the favorite list.

Lab mono, fragment Mono are nice and planning to try them.

Generally I like condense (but not too condesed) round fonts.

nilloc@discuss.tchncs.de on 13 Nov 2023 18:00 collapse

I used Dejavu sans mono (but modded to have a slashed 0. It’s based on Gnome’s Vera font, but at the time it had a very large open type feature set that appealed to me.

dejavu-fonts.github.io

Edit: bumped send before finishing thought…

Fira was my replacement, but I never really could get used to the operators ligatures, so left them disabled. I’m about to switch and try Neon or Argon (though I may end up mixing them a bit if it’s not too much work). Jetbrains has a neat design, but the r and f feel really out of place and I’d have to mod them to not be annoyed all the time.

AlexWIWA@lemmy.ml on 13 Nov 2023 21:28 collapse

I always just use my ide default. Never really had an issue to change it in any ide that I’ve used.

Intellij’s is very pleasing to the eye

tdawg@lemmy.world on 12 Nov 2023 20:19 next collapse

I’m too old to die on any hills these days but mainly if it:

  • is mono spaced
  • doesn’t change characters to something other than what they literally are

Then I’m happy

Scrof@sopuli.xyz on 12 Nov 2023 20:27 next collapse

Consolas is perfect

jvzr@lemmy.ml on 12 Nov 2023 20:43 next collapse

I’ve been liking Commit Mono recently. Otherwise, I usually use JetBrains Mono

NegativeLookBehind@kbin.social on 12 Nov 2023 20:44 next collapse

Webdings.

meter_kilo@lemm.ee on 12 Nov 2023 20:59 next collapse

I was expecting someone to say wingdings when I posted the question, but this is one better 😁

bingbong@lemmy.dbzer0.com on 13 Nov 2023 14:37 collapse

Webdings.

<img alt="" src="https://lemmy.dbzer0.com/pictrs/image/8970d164-8ba4-4ee0-b24a-0025ea477ccc.jpeg">

corytheboyd@kbin.social on 12 Nov 2023 21:02 next collapse

The one that comes with the IDE, because I don’t really care.

schnurrito@discuss.tchncs.de on 12 Nov 2023 22:11 next collapse

That is fine as long as it is one where l1I are easy to distinguish.

MonkCanatella@sh.itjust.works on 13 Nov 2023 05:37 collapse

so brave

catalyst@lemmy.world on 12 Nov 2023 21:18 next collapse

I’ve used IBM Plex Mono for a long time. Currently giving github’s new Monaspace a try.

aport@programming.dev on 13 Nov 2023 00:11 collapse

IBM Plex Mono is such a fancy, refined font. The line spacing is a bit too high for my liking though 😞

aleq@lemmy.world on 12 Nov 2023 21:18 next collapse

I use SauceCode Pro (variant of SourceCode Pro with nerdfonts stuff). I’ve given up on changing it because everytime I do I find stuff that’s “non-standard” in the fonts I test and it bugs the hell out of me. @ signs are the absolute worst offenders, which is weird because they have a very uniform look everywhere that’s not a specialized “programming” monospace font.

abhibeckert@lemmy.world on 12 Nov 2023 22:29 collapse

The standard @ symbol has four horizontal lines and worse the right side of the “a” is a vertical line contained inside a circle without touching it.

In a variable width font it’s often fully twice as wide as a regular “a” character. The variable width font lemmy uses for example, at least as rendered by my computer has six pixels for a lowercase “a” and also six pixels for the small one contained inside the “@” symbol, then another six pixels of width for the circle around it.

That’s an impossible task in a fixed width code font where users typically choose a size so small that the regular “a” can’t be reduced any further while still being readable.

Which is why basically all code fonts (including Source Code Pro) cheat and modify the symbol so the inner circle overlaps the outer one on the right edge. Some of them do that better than others at inventing their own variant of @.

aleq@lemmy.world on 16 Nov 2023 22:00 collapse

Yeah I guess you’re right. Probably just seen the Source Code Pro one so many times that I stopped being annoyed with it.

Should try exposing myself to the Jetbrains Mono font until I get used to that instead, then I won’t have to fiddle with that part of the IDE settings.

flubba86@lemmy.world on 12 Nov 2023 21:23 next collapse

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.

outcide@lemmy.world on 15 Nov 2023 01:43 collapse

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

aard@kyu.de on 12 Nov 2023 21:29 next collapse

I have a custom TrueType font embedding the UCS bitmap fonts so I can use it with modern font renderers which dropped support for those old font formats.

z3rOR0ne@lemmy.ml on 12 Nov 2023 21:36 next collapse

Whatever my distro defaults to when i put mono in suckless terminal’s config.h

fzz@programming.dev on 12 Nov 2023 21:43 next collapse

I love ligatures and Fira Code (retina) is the best and absolutely comfortable for me.

killeronthecorner@lemmy.world on 12 Nov 2023 21:44 next collapse

Cascadia Code is my go to

colonial@lemmy.world on 12 Nov 2023 21:58 next collapse

Can’t beat Iosevka in my opinion. I use the Term variant for my shell as well.

kamiheku@sopuli.xyz on 12 Nov 2023 23:14 collapse

Amen. I’m currently using Iosvmata, a custom build of Iosevka.

schnurrito@discuss.tchncs.de on 12 Nov 2023 22:11 next collapse

DejaVu Sans Mono

Max_P@lemmy.max-p.me on 12 Nov 2023 23:05 next collapse

I don’t know what’s with this font, but I can’t get away from it. I tried Monaspace because it looks really nice, as well as a few other programmer fonts. But DejaVu is just so sharp and readable, and it makes the code look slightly less busy.

A lot of modern fonts don’t look that great when not on a HiDPI “retina” display.

aport@programming.dev on 13 Nov 2023 00:09 collapse

DVSM is timeless. IMO Hack makes a few subtle improvements like the zero, i/l, and some punctuation characters

abhibeckert@lemmy.world on 12 Nov 2023 22:23 next collapse

I’ve been trying a new font every few months for years - and then I discovered Intel One Mono:

github.com/intel/intel-one-mono

Hard to describe what I like about the font but it just feels perfect.

Kissaki@feddit.de on 12 Nov 2023 22:41 next collapse

Cascadia Code is what I’m using

Pyroglyph@lemmy.world on 12 Nov 2023 22:46 next collapse

Fira Code was my font of choice for a while, but now I use JetBrains Mono! Cascadia Code is also acceptable.

sping@lemmy.sdf.org on 12 Nov 2023 23:18 next collapse

Ubuntu Mono since it was in beta and I heard the designer from Dalton Maag — the typeface design studio commissioned to design it — give a talk about how excited he was to be able to create a comprehensive, carefully thought out, and truly free/libre font.

I’ve never seen another one that I prefer the look of, and now it’s imprinted in my brain. People love to crap on Shuttleworth / Canonical / Ubuntu, but there are a lot of great things they’ve contributed over the years.

MonkCanatella@sh.itjust.works on 12 Nov 2023 23:22 next collapse

Try this site and pin the ones you like to compare really easily. You can also change the code to whatever you like.

I think my main is Hack, though I really like Pragmata and Gintronic. Jetbrains and Firacode are pretty cool, though I much prefer the first three to either, and Jetbrains to firacode.

One thing I really like about Hack and Gintronic is the very laid back parentheses. They don’t try to enclose the characters inside them like some fonts. They’re both very readable, hack is compact, gintronic is more extended but it has this feeling of everything being a logical block. Pragmata I really like but hard to actually compare it because it’s not on the site I shared above. Pragmata is I think as good as hack and gintronic, and it has the added benefit of having ligatures and nerd font glyphs built in! I’d probably prefer hack or gintronic overall if they had these features but they don’t.

muhanga@programming.dev on 15 Nov 2023 08:53 collapse

Thank you for sharing link to the site! I have found 4 new terminal fonts to try.

257m@sh.itjust.works on 12 Nov 2023 23:27 next collapse

Jetbrains Mono (Nerd Font). There is no other option for me.

dbilitated@aussie.zone on 13 Nov 2023 01:55 collapse

likewise, with ligatures!

oscardejarjayes@hexbear.net on 12 Nov 2023 23:51 next collapse

Iosevka, 100%. I’ve tried out a few others, but I keep returning.

youRFate@feddit.de on 12 Nov 2023 23:54 next collapse

I bought Pragmata Pro about 5 years ago and still love it.

fsd.it/shop/fonts/pragmatapro/

YeeHaw@beehaw.org on 13 Nov 2023 02:35 collapse

For people like me, who don’t feel cashing out money for a font - Iosevka is a pretty decent opensource clone of PragmataPro. But the OG still looks better to me somehow.

youRFate@feddit.de on 13 Nov 2023 07:55 collapse

I look at it basically all day at work, the 200€ are are down to a very small fraction of a cent / hour of use by now.

beefsquatch@programming.dev on 13 Nov 2023 00:26 next collapse

Victor Mono

theherk@lemmy.world on 13 Nov 2023 21:56 collapse

I can’t believe there isn’t more love for this here. I have used and loved many of the fonts here but Victor Mono is unparalleled in my view. Legible, open source, superb keming, cursive italics, ligatures or not, and very consistent across all faces. The champ in my book.

Albbi@lemmy.ca on 13 Nov 2023 01:22 next collapse

I’m trying out the new monaspace font. The variable width of wide letters is interesting and seamless, you don’t notice it happening.

Before that, I was using monolisa.

TheMadnessKing@lemdro.id on 13 Nov 2023 08:31 collapse

Was reading about Monaspace earlier. How would you compare it against something like Fira Code?

OvermindDL1@programming.dev on 13 Nov 2023 02:09 next collapse

Hack, just outright, so clean and clear and easy to read.

unique_hemp@discuss.tchncs.de on 13 Nov 2023 06:04 collapse

And where l is not the same as 1

punkwalrus@lemmy.world on 13 Nov 2023 02:22 next collapse

I have been partial to Proggy fonts for over a decade

proggyfonts.net/index.php?menu=download

silas@programming.dev on 13 Nov 2023 06:03 next collapse

I love MonaLisa a lot. I’ve been using it for pretty much all monospace throughout my computer. It feels very fine-tuned and well thought out, and it’s very readable too.

<img alt="" src="https://i.postimg.cc/jqhJx7wh/IMG-6879.jpg">

ArmokGoB@lemmy.dbzer0.com on 13 Nov 2023 22:31 collapse

My only complaint, based on the image you posted, is that I had to look at the len above the === to tell how many equal signs there were in that operator.

EDIT: After checking the website (and looking at the operator again), the font uses custom ligatures. However, the full version also costs $150.

silas@programming.dev on 13 Nov 2023 23:36 collapse

Yeah, that’s a literature with 3 lines so it’s easy to distinguish. The cost is obviously a huge downside compared to other fonts here though

spez@sh.itjust.works on 13 Nov 2023 06:08 next collapse

Hey I use the same font! Didn’t know it supported ligatures, is this feature new? I use the nerd font version so I might have to update.

meter_kilo@lemm.ee on 13 Nov 2023 10:24 collapse

I think it had support for a while. I guess it needs to be enabled on the editor.

spez@sh.itjust.works on 13 Nov 2023 11:02 collapse

No. Ligatures aren’t being added github.com/madmalik/mononoki/issues/29

glibg10b@lemmy.ml on 13 Nov 2023 06:20 next collapse

Fira Code, but I haven’t used anything else with ligatures

TuxOfStars@beehaw.org on 13 Nov 2023 10:35 collapse

+1 for Fira Code

vrkr@programming.dev on 13 Nov 2023 07:47 next collapse

My own variant of Iosevka

sboulema@programming.dev on 13 Nov 2023 08:21 next collapse

Using Cascadia Code as main font and trying out Monaspace as font for comments and git lens text.

boblemmy@lemmy.world on 13 Nov 2023 08:33 next collapse

comic mono

Bougie_Birdie@lemmy.blahaj.zone on 13 Nov 2023 21:50 collapse

I discovered comic mono a couple months ago and I’ve never looked back. It’s the perfect font

vivadanang@lemm.ee on 13 Nov 2023 08:44 next collapse

re: mononoki - what’s the license, I don’t see it in the github.

sonnenzeit@feddit.de on 13 Nov 2023 08:53 collapse

github.com/madmalik/mononoki/blob/main/LICENSE

vivadanang@lemm.ee on 13 Nov 2023 09:37 collapse

TYVM

Maturi0n@feddit.de on 13 Nov 2023 09:17 next collapse

Ubuntu Mono. Though I don’t use Ubuntu.

kogasa@programming.dev on 13 Nov 2023 12:47 next collapse

Iosevka SS14

agilob@programming.dev on 13 Nov 2023 13:13 next collapse

dtinth.github.io/comic-mono-font/

derpgon@programming.dev on 13 Nov 2023 13:23 next collapse

Been using Input Mono for the past 5 or so years.

Aio@beehaw.org on 13 Nov 2023 13:54 next collapse

Monospace, openDyslexic, Noto Sans Regular

Feathercrown@lemmy.world on 13 Nov 2023 18:15 next collapse

Default VS Code font, whatever that is. I prefer no ligatures; I find them distracting.

sjpwarren@programming.dev on 13 Nov 2023 21:03 next collapse

Me too. I don’t understand why people like ligatures.

dukk@programming.dev on 14 Nov 2023 11:59 collapse

IIRC, should be Cascadia Code.

Also, I’m the opposite. I love ligatures, I feel they make my code cleaner and remove extra noise.

ipkpjersi@lemmy.ml on 13 Nov 2023 18:25 next collapse

I like Hack. I’m not huge on ligatures.

zagaberoo@beehaw.org on 13 Nov 2023 19:16 next collapse

Unifont: it looks clean and I love the curly braces.

PHLAK@lemmy.world on 13 Nov 2023 20:31 next collapse

I’m a big fan of Adobe’s Source Code Pro.

rolfwr@programming.dev on 13 Nov 2023 22:14 next collapse

I settled on Go Mono, a few years back after going through a list of commonly recommended code fonts, and picking the one that I liked best. While I usually do not program in Golang, I still find the this font to be well suited for any programming language.

ExperimentalGuy@programming.dev on 14 Nov 2023 01:02 next collapse

Times New Roman

gac11@lemmy.world on 14 Nov 2023 11:41 collapse

Maybe a little Fixed Width Comic Sans?

Taringano@lemm.ee on 14 Nov 2023 16:14 collapse

Variable width if you’re really hardcore

dukk@programming.dev on 14 Nov 2023 12:11 next collapse

Recursive Mono. It’s freaking cool. I like ligatures so it’s got them, it’s nice on the eyes, and it’s playful without being too playful.

Bonus points if you use Semicasual.

outcide@lemmy.world on 15 Nov 2023 01:32 collapse

+1 Recursive!

wazzupdog@lemmy.world on 14 Nov 2023 12:14 next collapse

Sony Sketch, I’m mildly dyslexic and it’s surprisingly easy for me to read, and looks good too.

Hammerheart@programming.dev on 14 Nov 2023 12:18 next collapse

I use comic mono for the meme, but i also like courier and old school terminal looking fonts

PieMePlenty@lemmy.world on 14 Nov 2023 12:34 next collapse

Whatever is the default.

neutronst4r@beehaw.org on 14 Nov 2023 12:42 next collapse

I use Iosevka Nerd Font. It looks nice and has various extra glyphs and ligature support.

blakeus12@hexbear.net on 14 Nov 2023 19:59 next collapse

comic sans

owenfromcanada@lemmy.world on 14 Nov 2023 23:08 next collapse

Liberation Mono. It’s probably not the best out there, but I like it well enough.

DerArzt@lemmy.world on 16 Nov 2023 01:10 collapse

I started using comic sans mono ironically, but have come to realize that it legit is easy to read.