Bug 409378 - Title bar too large, when the title contains an unicode star
Summary: Title bar too large, when the title contains an unicode star
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: aurorae (other bugs)
Version First Reported In: 5.15.4
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-01 16:17 UTC by Alex
Modified: 2019-08-14 01:55 UTC (History)
1 user (show)

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


Attachments
A screenshot of kdialog showing a too large title bar (16.83 KB, image/png)
2019-07-01 16:17 UTC, Alex
Details
A screenshot of a kdialog showing the correct title bar (16.52 KB, image/png)
2019-07-01 16:19 UTC, Alex
Details
Rendering of the text in a input field of "kdialog --urlopendialog" (2.90 KB, image/png)
2019-07-01 23:03 UTC, Alex
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex 2019-07-01 16:17:40 UTC
Created attachment 121267 [details]
A screenshot of kdialog showing a too large title bar

SUMMARY


STEPS TO REPRODUCE
1. Run kdialog --title "test ⛧ test" --msgbox "test test test test test test test test test"


OBSERVED RESULT

The title bar is much larger than it should be.

EXPECTED RESULT

Same title baras always

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 19.04 / 5.15.4
(available in About System)
KDE Frameworks Version: 5.15.4
Decoration: Plastik
Comment 1 Alex 2019-07-01 16:19:23 UTC
Created attachment 121268 [details]
A screenshot of a kdialog showing the correct title bar
Comment 2 Christoph Feck 2019-07-01 22:53:14 UTC
How is the text rendered if you type it into a QLineEdit? For example, in a file dialog?
Comment 3 Alex 2019-07-01 23:03:30 UTC
Created attachment 121273 [details]
Rendering of the text in a input field of "kdialog --urlopendialog"
Comment 4 Christoph Feck 2019-07-25 09:38:07 UTC
No KDE code decides how much space a character gets. It's encoded in the fonts, but individual libraries (freetype, Qt) might override it with specific code for various CJK width or Emoji related adjustments.
Comment 5 Alex 2019-08-07 19:39:51 UTC
What does this mean for this bug? I experience the behaviour in the KWin title bar and as a user I would like to have it fixed.

Did you report it to upstream or what is the correct upstream to report it to?
I guess the best course of action would be, when you work with the upstream, as I already see an upstream bug closed as "Wontfix: KDE issue, ask the KDE project".
Comment 6 Christoph Feck 2019-08-14 01:55:27 UTC
I would suggest to try different fonts. If this is reproducible with all fonts, then the change is either in libfreetype, or in Qt.

Knowing what versions you updated would help to pinpoint the commit that changed it.