Bug 401298 - Wide glyphs in ambiguous characters are clipped to one cell
Summary: Wide glyphs in ambiguous characters are clipped to one cell
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: font (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
: 378124 392172 401421 404128 404525 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-11-22 02:38 UTC by Horacio Sanson
Modified: 2019-02-19 17:25 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In: 19.04.0


Attachments
Konsole vs Sakura wide font rendering. (44.92 KB, image/png)
2018-11-22 02:38 UTC, Horacio Sanson
Details
Ruby script to test devicons/fontawesome glyphs. (525 bytes, application/x-ruby)
2018-11-22 02:39 UTC, Horacio Sanson
Details
Wide font rendering test in konsole 18.12 (155.16 KB, image/png)
2018-12-14 13:59 UTC, Horacio Sanson
Details

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