microsoft / terminal

The new Windows Terminal and the original Windows console host, all in the same place!
MIT License
94.88k stars 8.22k forks source link

Add an option to split font ligatures based on color change #17806

Open sangoderango opened 2 weeks ago

sangoderango commented 2 weeks ago

Description of the new feature/enhancement

I would like a feature to split font ligatures whenever there is a color change between the characters that make up a ligature. WezTerm does this as shown below.

Windows

image

Wezterm

image

Both are using JetBrains Mono Nerd Font.

Not sure if there is a feature request already for this.

Proposed technical implementation details (optional)

Ideally it would be on by default but a toggle option may be preferred.

lhecker commented 2 weeks ago

We worked very hard on allowing color transitions across a ligature. That's an intentional feature and wasn't particularly easy to achieve. So unfortunately, I'd be against disabling that by default.

However, I'm absolutely open to adding a setting like that, in particular if other people would want this as well.