C
C#2y ago
ggppjj

Font ligatures in richtextbox?

I'd like to use the Fira Code font in a richtextbox for a project specifically because it has some nice looking optional ligature features, i.e. combining "----" into a single visual line. I am under the impression that for some other projects (notably Notepad++) this was done by enabling DirectWrite, but I have absolutely no clue whether what I'd like to do is possible in C# with Winforms.
3 Replies
ggppjj
ggppjj2y ago
Example from designer view (which displays the same in the running application):
ggppjj
ggppjj2y ago
Example from Notepad++ with DirectWrite enabled and Fira Code set to a global font:
ggppjj
ggppjj2y ago
Font settings in properties for the richtextbox: