Bug 401298

Summary: Wide glyphs in ambiguous characters are clipped to one cell
Product: [Applications] konsole Reporter: Horacio Sanson <hsanson>
Component: fontAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: normal CC: achilleas.k, aria, IevgenSobko, kaefert, mglb, nate, p, thomas+kdebugs, vanush.kamaryan
Priority: NOR    
Version: master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 19.04.0
Attachments: Konsole vs Sakura wide font rendering.
Ruby script to test devicons/fontawesome glyphs.
Wide font rendering test in konsole 18.12

Description Horacio Sanson 2018-11-22 02:38:31 UTC
Created attachment 116464 [details]
Konsole vs Sakura wide font rendering.

Every modern terminal I test (sakura, st, xterm, gnome, termite) is able to render wide fonts correctly. I really don't understand why Konsole is unable to do the same since forever.

STEPS TO REPRODUCE
1. Configure some nice fonts with powerline glyphs (e.g. fira code)
2. Render them in konsole (see attached script).


OBSERVED RESULT

Half of each font is rendered.
Highlight with mouse to copy any of the fonts is nearly impossible.

EXPECTED RESULT

Fonts should be fully rendered as in any other terminal (see attached screenshot).

Selecting and copying with the mouse should work as with any other text.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: NEON latest updates.


ADDITIONAL INFORMATION

At some point in time fonts were rendered correctly when disabling bi-directional text rendering in Konsole settings. Cannot remember which version.
Comment 1 Horacio Sanson 2018-11-22 02:39:32 UTC
Created attachment 116465 [details]
Ruby script to test devicons/fontawesome glyphs.
Comment 2 Christoph Feck 2018-11-22 22:44:58 UTC
> I really don't understand why Konsole is unable to do the same since forever.

Qt unfortunately does not support duospaced fonts, only monospaced fonts.

Konsole 18.12 will render characters individually instead of using the Qt character advances to work around this limitation, and will also have an updated Unicode database for wide characters, but I am not sure what Konsole does for characters that could be wide or narrow, depending on the context.

Please test the 18.12 beta release or current master.
Comment 3 Christoph Feck 2018-11-26 12:55:44 UTC
*** Bug 401421 has been marked as a duplicate of this bug. ***
Comment 4 Nate Graham 2018-11-26 17:24:01 UTC
Pretty sure this is already fixed in 18.12, yeah.

Please re-open if you find that 18.12 (once it's released) doesn't fix this for you. Thanks!
Comment 5 Horacio Sanson 2018-12-14 13:58:29 UTC
Just updated my KDE Neon with latest packages that include applications 18.12.0 and unfortunately the font rendering is still bad. See attached screenshot.

Konsole is in version 18.12.0.
Comment 6 Horacio Sanson 2018-12-14 13:59:27 UTC
Created attachment 116920 [details]
Wide font rendering test in konsole 18.12
Comment 7 Mariusz Glebocki 2019-01-15 03:55:59 UTC
*** Bug 392172 has been marked as a duplicate of this bug. ***
Comment 8 Mariusz Glebocki 2019-02-09 07:43:34 UTC
*** Bug 404128 has been marked as a duplicate of this bug. ***
Comment 9 Mariusz Glebocki 2019-02-09 07:45:27 UTC
The fix is done and awaits for review https://phabricator.kde.org/D18784
Comment 10 Mariusz Glebocki 2019-02-18 16:16:45 UTC
*** Bug 404525 has been marked as a duplicate of this bug. ***
Comment 11 Nate Graham 2019-02-19 17:25:01 UTC
*** Bug 378124 has been marked as a duplicate of this bug. ***