icsharpcode / AvalonEdit

The WPF-based text editor component used in SharpDevelop
http://avalonedit.net/
MIT License
1.85k stars 469 forks source link

How can I disable ligatures in TextEditor? #432

Open QYF-RYCBStudio opened 2 weeks ago

QYF-RYCBStudio commented 2 weeks ago

Discussed in https://github.com/icsharpcode/AvalonEdit/discussions/431

Originally posted by **QYF-RYCBStudio** August 31, 2024 When I use `Jetbrains Mono` to show the code, I find that they do the ligatures for most operators. But I can't find any property to disable it. The Microsoft offical website says `SetValue(Typography.StandardLigaturesProperty, false);` can disable it, but I can't. (See https://learn.microsoft.com/dotnet/desktop/wpf/advanced/opentype-font-features?view=netdesktop-8.0). Screenshots: ![image](https://github.com/user-attachments/assets/1b47b2fd-3fa7-4ad2-94dd-90676b2da1f1) ![image](https://github.com/user-attachments/assets/a27dc004-90b7-4b67-a27e-a21ffddeb41b)