Bug 470059

Summary: Konsole crops wide non mono icon-fonts when next char has different color
Product: [Applications] konsole Reporter: Vincenzo Di Massa <hawk.it>
Component: fontAssignee: Konsole Developer <konsole-devel>
Status: CONFIRMED ---    
Severity: normal    
Priority: NOR    
Version: 22.04.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=432898
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: See how the bug crops icons on the left
Bug reproduced with printf

Description Vincenzo Di Massa 2023-05-20 18:37:53 UTC
Created attachment 159144 [details]
See how the bug crops icons on the left

SUMMARY
***
Konsole crops wide non mono icon-fonts in some circumstances
***


STEPS TO REPRODUCE
1. install nvim-0.9
2. install nvchad https://nvchad.com/docs/quickstart/install, but probably just installing nvim-tree is enough

OBSERVED RESULT
The icons are cropped in nvim-tree (but also elsewhere in the "ui" are cropped (see screenshot, on the left)

EXPECTED RESULT
The icons shall display like they do when they are "copy pasted" into a vim buffer (see screenshot, on the right)

SOFTWARE/OS VERSIONS
Linux: Kubuntu 22.04/Plasma 
KDE Plasma Version: 5.24.7
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Other terminals e.g. sakura, st https://github.com/siduck/st, don't have this problem
I though color could be the issue, but the behavior is not reproducted by:
printf "\e[1;33m test \xE2\x9C\x94 󰉋  missing \e[0m test \xE2\x9C\x94 󰉋 missing\n"

The screenshot is using the following config:
<󰉋> 983627, Hex 000f024b, Octal 3601113
The used font is: https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.1/Meslo.zip
MesloLGS Nerd Font:style:regular:pixelsize=12
Comment 1 Vincenzo Di Massa 2023-05-21 00:12:59 UTC
Created attachment 159158 [details]
Bug reproduced with printf

No problem when next char is same color:
printf "\e[1;33m test \xE2\x9C\x94 󰉋 \e[0m test \xE2\x9C\x94 󰉋 missing\n"
Problem reproduced:
printf "\e[1;33m test \xE2\x9C\x94 󰉋\e[0m test \xE2\x9C\x94 󰉋 missing\n"
Comment 2 Vincenzo Di Massa 2023-05-21 01:08:24 UTC
Works in 23.04.1 compiled from src on kubuntu 22.04.