Bug 422776

Summary: Unicode icons are clipped when the proceeding whitespace has a different color
Product: [Applications] konsole Reporter: Dan <danberliner>
Component: fontAssignee: Konsole Developer <konsole-devel>
Status: CONFIRMED ---    
Severity: minor CC: aria, flyingwaffle, postix, uwu
Priority: NOR    
Version First Reported In: 20.12.0   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Another demonstration screenshot.
Screenshot Reproduction of Report

Description Dan 2020-06-10 19:20:29 UTC
SUMMARY
Unicode characters that require more than one place to display are cut off if the color or background of the following whitespace is different. If the same color is specified in sequence the character displays without being cut off.

STEPS TO REPRODUCE
echo -e "This works: \e[43m \e[0m"
echo -e "This works: \e[32m\e[0m\e[32m \e[0m"
echo -e "This works: \e[43m\e[0m\e[43m \e[0m"
echo -e "This doesn't work: \e[32m\e[0m\e[31m \e[0m"
echo -e "This doesn't work: \e[43m\e[0m\e[44m \e[0m"

OBSERVED RESULT
Unicode characters are clipped on the last two commands

EXPECTED RESULT
Unicode characters are not cut off by whitespace characters of a different color or background. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro KDE Plasma 20.0.3
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.14.2

ADDITIONAL INFORMATION
This works identically on bash and zsh.
Comment 1 FlyingWaffle 2020-08-31 15:12:47 UTC
Created attachment 131314 [details]
Another demonstration screenshot.

Just wanted to confirm this bug and provide a few screenshots.  As you can see a few pixels are trimmed off the left side of my folder and clock glyphs in my prompt line, and also at the beginning of a line but not when surrounded by same color spaces.
Comment 2 FlyingWaffle 2020-08-31 15:16:03 UTC
Created attachment 131315 [details]
Screenshot Reproduction of Report
Comment 3 Justin Zobel 2020-11-03 00:42:29 UTC
*** Bug 427308 has been marked as a duplicate of this bug. ***
Comment 4 ariasuni 2021-01-02 00:40:08 UTC
I’m not really a fan of emojis etc. but it tends to be used often nowadays. Also, the same problem happens with Nerd fonts icons.