Bug 470059 - Konsole crops wide non mono icon-fonts when next char has different color
Summary: Konsole crops wide non mono icon-fonts when next char has different color
Status: CONFIRMED
Alias: None
Product: konsole
Classification: Applications
Component: font (show other bugs)
Version: 22.04.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-20 18:37 UTC by Vincenzo Di Massa
Modified: 2024-05-04 15:37 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
See how the bug crops icons on the left (260.35 KB, image/png)
2023-05-20 18:37 UTC, Vincenzo Di Massa
Details
Bug reproduced with printf (20.73 KB, image/png)
2023-05-21 00:12 UTC, Vincenzo Di Massa
Details

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