Bug 422776 - Unicode icons are clipped when the proceeding whitespace has a different color
Summary: Unicode icons are clipped when the proceeding whitespace has a different color
Status: CONFIRMED
Alias: None
Product: konsole
Classification: Applications
Component: font (show other bugs)
Version: 20.12.0
Platform: Manjaro Linux
: NOR minor
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
: 427308 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-06-10 19:20 UTC by Dan
Modified: 2021-12-03 05:08 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Another demonstration screenshot. (34.23 KB, image/png)
2020-08-31 15:12 UTC, FlyingWaffle
Details
Screenshot Reproduction of Report (32.89 KB, image/png)
2020-08-31 15:16 UTC, FlyingWaffle
Details

Note You need to log in before you can comment on or make changes to this bug.
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.