SLADE icon indicating copy to clipboard operation
SLADE copied to clipboard

Support OTF ligatures in text editor

Open WoolieWool opened this issue 1 year ago • 4 comments

Editor

Resource editor

Description of your feature request

Many modern terminal fonts support ligatures for commonly used multi-character symbols such as !=, ==, <=, >=, ->, ++, /=, >>=, and <|. Would you consider adding support to these in SLADE's text editor?

Mock-up

ligatures shown in a ZScript function in the vim text editor: https://i.imgur.com/zySZJqI.png

WoolieWool avatar Dec 23 '24 07:12 WoolieWool

This is already in: set txed_use_directwrite cvar to true. Restart SLADE.

Blue-Shadow avatar Dec 23 '24 10:12 Blue-Shadow

I think enabling that causes non-TTF fonts not to work unfortunately. Not much I can do as the issue is on Scintilla's end

sirjuddington avatar Dec 24 '24 04:12 sirjuddington

Confirmed this console command breaks OTF fonts.

WoolieWool avatar Dec 24 '24 06:12 WoolieWool

Hmm, interestingly enough it seems to work fine with OTF fonts for me (in 3.2.6, Windows 11), what font exactly are you trying to use?

sirjuddington avatar Dec 24 '24 09:12 sirjuddington