News for hackers. Stuff that matters.
Re:MonoLisa – A font designed for developers by MikeTheGreat on Monday February 14, 2022 @07:25PM (#30340726)
Serious (if goofy:) ) question: How do I not use them?

My understanding is that if the font has ligatures then the way to not use them is to use a different font (which is fine - there's a lot of fonts out there :) ).

Is that the only way, or is there a way to disable ligatures but keep the rest of the font? Can you disable only some of the ligatures?

TIA!

Re:MonoLisa – A font designed for developers by galkk on Tuesday February 15, 2022 @02:14AM (#30343657)
Literally every IDE that I used has checkbox to disable ligatures. Idea, VS, VSCode. Kitty terminal also has setting to turn them on/off.
Re:MonoLisa – A font designed for developers by henriquecm8 on Monday February 14, 2022 @07:48PM (#30340980)
Ligature is a optional feature, first the editor need to support them, but I guess most editors nowadays already support that. JetBrains IDEs come with JetBrains mono and with ligatures enabled, last time I used VScode I had to enable manually for my new font.
Re:MonoLisa – A font designed for developers by calessian on Monday February 14, 2022 @09:25PM (#30341870)
Some fonts also just have different variants with and without ligatures, for example Cascadia Code/Mono: https://github.com/microsoft/cascadia-code
Re:MonoLisa – A font designed for developers by Aeolun on Monday February 14, 2022 @07:50PM (#30340998)
In JetBrain products: Preferences -> Editor -> Font -> Enable ligatures

So you can turn them off even in fonts that have them, but most fonts have separate versions with and without anyway.

Re:MonoLisa – A font designed for developers by alexvoda on Monday February 14, 2022 @09:10PM (#30341730)
For VS Code see (1) and to selectively disable them (2).

For Atom see (3).

There does not appear to be a way to disable them in Visual Studio.

(1) https://stacksjar.com/post/use-of-font-ligatures-in-vs-code

(2) https://marketplace.visualstudio.com/items?itemName=Coenraad...

(3) https://github.com/tonsky/FiraCode/issues/633

Re:MonoLisa – A font designed for developers by spoiler on Tuesday February 15, 2022 @07:37AM (#30345654)
Ooh the selectively disabled extension is really cool! Thanks!

I sometimes—rarely happens thought—dislike how the cursor renders on top of ligatures in vscode. Always wished it would allow me to "inject" the cursor into the ligature, but since it didn't happen often or bother me as much, I never tried looking for a solution. This will be a small, but much appreciated quality of life improvement! Thanks again!

Re:MonoLisa – A font designed for developers by ReleaseCandidat on Tuesday February 15, 2022 @03:09AM (#30343943)
> Is that the only way, or is there a way to disable ligatures but keep the rest of the font?

It's actually not that easy to use them with for example Emacs where you have to list every combination that you want to 'translate' to a ligature:

https://github.com/mickeynp/ligature.el

Re:MonoLisa – A font designed for developers by kag0 on Monday February 14, 2022 @07:30PM (#30340772)
how to not use them is editor dependent.

but you absolutely don't have to use them.

regular fonts are basically "use this image for 'a', this image for 'e'" etc. ligatures are extra data that says "if you find an 'a' next to an 'e', use this other image in place of the 'a' and 'e' images". but the non-ligature versions of characters are still in the font for use when there is no ligature sequence (just put a space in the middle of any ligature in your editor and you'll still see the independent characters rendered in the font).