Bug 432898 - Font rendering truncates bold letter in combo with unicode symbols
Summary: Font rendering truncates bold letter in combo with unicode symbols
Status: CONFIRMED
Alias: None
Product: konsole
Classification: Applications
Component: font (show other bugs)
Version: 20.08.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-13 19:58 UTC by Stefan Huber
Modified: 2024-05-04 15:37 UTC (History)
4 users (show)

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


Attachments

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