Sublime Forum

Issue with Font Rendering

#1

When I type two underscore characters ("__") in the text editor, they are rendered as a single, connected underline, rather than two separate underscores. I don’t like it. I don’t think it make the code look more comfortable. VS code has no this problem, and Sublime Text has no too some years ago, as I remember. What can I do to change?
%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20231229062705

0 Likes

#2

What you see is a feature called font ligatures which is certainly supported by VS Code as well.

Whether and which fonts are displayed using ligatures depends on selected font and can to some degree be customized via font_options settings. See no_liga, no_calt and no_clig values.

3 Likes

#3

Thank you for your help. It’s got done.
I can see it’s designed, but I can’t find where to customize it. My settings file is too old and the comments don’t mention it at all. I just noticed that the settings file hasn’t been updated with the application. Oh, that’s really hidden.

0 Likes

#4

Default Preferences.sublime-settings is updated with each release.

Maybe you are affected by an accidentally overridden Default package.

You can check by calling Main Menu > Preferences > Browse Packages… The folder being opened shouldn’t contain a folder named Default except for good and known reasons.

1 Like

#5

OK! You‘re right. I can’t really remember why the Default package was overridden, but this was a mistake. I just solved the problem.

0 Likes

#6

Thanks for an explicit answer on how to resolve this issue. I face it from time to time, and usually, it takes a while for me to play around with it.

0 Likes