JetBrains / JetBrainsMono

JetBrains Mono – the free and open-source typeface for developers
https://jetbrains.com/mono
SIL Open Font License 1.1
10.57k stars 298 forks source link

Document using OpenType alternatives but disabling ligatures #652

Open joeshaw opened 7 months ago

joeshaw commented 7 months ago

The wiki has a page for how to enable features for alternative character renderings.

At least for VSCode, setting the editor.fontLigatures setting enables code ligatures in JetBrains Mono, even if it's only a subset of features. I had mine set to "editor.fontLigatures": "'zero', 'cv01', 'cv03', 'cv07', 'cv12'". But I don't want code ligatures, I only want some of the alternative character renderings.

I eventually figured out that you can explicitly disable certain features, namely the calt feature which turns on those code ligatures. My value is now "editor.fontLigatures": "'calt' 0, 'zero', 'cv01', 'cv03', 'cv07', 'cv12'" and I have the alternate renderings without ligatures.

It would be good to update the wiki page with this information. If it's possible to do it in CSS it would be good to update that as well.

RYRY1002 commented 1 month ago

+1 I was in the exact same situation as you, this helped a lot. Thanks!