Bug 432898

Summary: Font rendering truncates bold letter in combo with unicode symbols
Product: [Applications] konsole Reporter: Stefan Huber <shuber>
Component: fontAssignee: Konsole Developer <konsole-devel>
Status: CONFIRMED ---    
Severity: normal CC: cblegare.atl, nate, postix, uwu
Priority: NOR    
Version: 20.08.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=470059
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Stefan Huber 2021-02-13 19:58:42 UTC
SUMMARY

The letter '4' is truncated (only the left half is shown) for this output:
echo "$fg_bold[green]⬢ v14.15.4"

It seem to be caused by the combination of a bold font and the "black hexagon" U+2B22, because also in this minimum example the "black hexagon" U+2B22 is cut off:
echo -e "$fg_bold[green] \xe2\xac\xa2" 

It does NOT happen for this command:
echo "$⬢ v14.15.4" 

It does NOT happen for this command:
echo "$fg_bold[green]v14.15.4" 

The symbol ⬢ is produced by starship (in zsh) by the NodeJS module:
https://starship.rs/config/#nodejs

OBSERVED RESULT

Consider the output of
echo -e "$fg_bold[green] \xe2\xac\xa2 whatever$fg[blue]hello"

Then the last character (here: 'r') of the bold output is not fully displayed but truncated. Only the left half is shown.


SOFTWARE/OS VERSIONS

Gentoo Linux with plasma 5.20.5, kde frameworks 5.77.0, Qt 5.15.2, konsole 20.08.3.

The font used is Hack from nerd-fonts-2.1.0.
Comment 1 Charles Bouchard-Légaré 2021-02-25 02:22:17 UTC
I have the same issue, with any of my fonts (patched or not, bold or not)), any size, color scheme based on Nord

Operating System: KDE neon 5.21
KDE Plasma Version: 5.21.1
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Kernel Version: 5.4.0-65-generic
OS Type: 64-bit
Graphics Platform: X11
Comment 2 Charles Bouchard-Légaré 2021-03-08 14:15:19 UTC
I see this issue with all monospace font on my machine except for Noto Mono Emoji.  When I use a non-monospace font, no characters are truncated.