Sublime Forum

How to enable ligatures?

#1

Hello, I haven’t found an option in Preferences where I can enable ligatures… Where can I enable it?

0 Likes

Strange thing about the default Consolas font
Arch Dev Package
#2

the preference is called font_face - you need to use a font that contains ligatures. Be sure to test it in Plain Text mode before thinking it doesn’t work, sometimes the syntax definition scopes consecutive characters differently that would otherwise form a ligature.

1 Like

#3

Noticed that it requires the option font_options set to directwrite or to set to default:

    // Valid options are "no_bold", "no_italic", "no_antialias",
    // "gray_antialias", "subpixel_antialias", "gdi" (Windows only) and
    // "directwrite" (Windows only)
    "font_options": [],

Otherwise ligature will not work:

I set it by default to “gdi”, because “DirectWrite” is rendering my fonts uglier, larger, I do not liked. Then due this, I lose the ligature support, however my default font is Consolas which does not support ligatures. Anyways, I am not sure I would like ligatures in my code.

0 Likes

#4

I’ve tried with PragmataPro with ligatures and Fira Code but none of them work.

I’ve tried with and without “directwrite”, since it’s Windows Only this shouldn’t change anything for me since I’m using MacOS…

1 Like

#5

which ST build are you using? 3155 I hope?

1 Like

#6

I’m using 3143 but when I check for updates there’s nothing… I’ll try downloading and installing again

0 Likes

#7

Oh, 3155 is a Dev build and it’s paid… I don’t have a license (yet, I plan to buy one soon)

0 Likes