JetBrainsMono icon indicating copy to clipboard operation
JetBrainsMono copied to clipboard

Document using OpenType alternatives but disabling ligatures

Open joeshaw opened this issue 2 years ago • 2 comments

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.

joeshaw avatar Nov 13 '23 18:11 joeshaw

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

RYRY1002 avatar May 13 '24 02:05 RYRY1002