Bug 474310

Summary: Konsole eats a space after most unqualified emojis
Product: [Applications] konsole Reporter: Adam Fontenot <adam.m.fontenot+kde>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: REPORTED ---    
Severity: normal CC: alex
Priority: NOR    
Version: 24.02.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screenshot of the problem

Description Adam Fontenot 2023-09-08 20:20:51 UTC
Created attachment 161516 [details]
screenshot of the problem

SUMMARY

The emoji handling in Konsole has recently been greatly improved (thanks for this), but I found a nit in the handling of a particular class of emojis. I think probably Konsole is not recognizing that these characters are emojis and giving them the appropriate additional padding.

This problem occurs with all unqualified emojis unless (a) the emoji ends with an emoji presentation selector (FE0F), or (b) the glyph is sufficiently wide to force the font rendering engine to push the following character into the next alignment box. The "wavy dash" emoji 〰️ is wide enough to do this at 10pt in Noto Sans Emoji. 

Some unqualified emoji are given a text rendering, e.g. the unqualified version of the play button ▶️. In this case it is possible that the emoji will be rendered in a monospace font appropriate for a terminal and as a result the spacing will look correct, despite the fact that this could cause misalignment with other columns for which wider spacing is enforced. It's not clear to me what the correct behavior is, in this case.

(Note, all emoji in this bug report are fully qualified for better handling in browsers and email clients. The bugs appear when the unqualified versions of these emoji are used.)

STEPS TO REPRODUCE
1. curl -s https://www.unicode.org/Public/emoji/15.0/emoji-test.txt | grep unqualified

OBSERVED RESULT

Most unqualified emoji are not given the extra space of padding that qualified emoji receive.

EXPECTED RESULT

Unqualified emoji look the same as other emoji, at least if they are rendered in the emoji font. (In other cases, correct behavior is more complicated, as discussed above.)
Comment 1 AlexDeLorenzo.dev 2023-09-10 23:41:52 UTC
Can confirm this. Looks like, to me, that v23.08.0 broke emoji rendering in Konsole. 

Seems like this is related to https://bugs.kde.org/show_bug.cgi?id=474009
Comment 2 Adam Fontenot 2024-03-04 21:12:23 UTC
Reproduced on 24.02.

Operating System: Arch Linux 
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.6-arch1-1 (64-bit)
Graphics Platform: Wayland