From 3940bf586b60a6c8b9afd0a37b3632dd241349ce Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Sun, 23 Jan 2022 11:09:10 +0200 Subject: [PATCH] [Editor] Disable contextual alternates (coding ligatures) outside of code editor. --- editor/editor_fonts.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/editor_fonts.cpp b/editor/editor_fonts.cpp index 6ca878e68dc..0c9a7b29728 100644 --- a/editor/editor_fonts.cpp +++ b/editor/editor_fonts.cpp @@ -270,6 +270,9 @@ void editor_register_fonts(Ref p_theme) { /* Hack */ Ref dfmono = load_cached_internal_font(_font_JetBrainsMono_Regular, _font_JetBrainsMono_Regular_size, font_hinting, font_antialiased, true); + Dictionary opentype_features; + opentype_features["calt"] = 0; + dfmono->set_opentype_feature_overrides(opentype_features); // Disable contextual alternates (coding ligatures). // Default font MAKE_DEFAULT_FONT(df, String());