https://bugs.kde.org/show_bug.cgi?id=529239
Bug ID: 529239
Summary: Mishandling of ligatures when the characters involved
have different color
Classification: Applications
Product: kwi
Version First 0.1.0
Reported In:
Platform: CachyOS
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 198750
--> https://bugs.kde.org/attachment.cgi?id=198750&action=edit
Side by side: correct behavior in konsole vs incorrect behavior in kwi
DESCRIPTION
When a ligature is made up of several characters that have different color, the
entire ligature has the color and style of the last character.
Konsole gets this right by not forming ligatures across different styles. So
does ghostty 1.4.0, so I'm filing this against kwi and not libghostty. I'm
pretty sure that behavior is the consensus among terminal emulators.
STEPS TO REPRODUCE
1. Use a font with ligatures (I'm using JetBrains Mono)
2. Display a sequence that is recognized as a ligature but whose components
have different color
OBSERVED RESULT
The resulting ligature has the color of the last character that forms it.
EXPECTED RESULT
Either the ligature is partially colored, or not formed at all.
I think the latter is a lot simpler (especially considering bold&italic), and
should look correct in more situations.
ADDITIONAL INFORMATION
This is the first thing I noticed when trying out kwi, because usually prompt
is green pwd followed by white >, and what I saw was a white squiggly arrow. I
think there are a lot of situations where this bug is going to result in
incorrect rendering for users of fonts with ligatures.
--
You are receiving this mail because:
You are watching all bug changes.