Bug 417488 - Broken fonts and fuzzy theme previews in multiple system settings
Summary: Broken fonts and fuzzy theme previews in multiple system settings
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kdeclarative
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.69.0
Platform: Arch Linux Linux
: HI major
Target Milestone: ---
Assignee: Marco Martin
URL:
Keywords: regression
: 416350 417483 418943 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-02-12 12:16 UTC by ritalat
Modified: 2020-05-09 11:51 UTC (History)
15 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.71


Attachments
Broken font rendering on labels and fuzzy preview images (92.02 KB, image/png)
2020-02-12 12:16 UTC, ritalat
Details
GridDelegate.qml (7.35 KB, text/x-qml)
2020-02-13 22:23 UTC, Nate Graham
Details
In new GHNS dialog (5.51 KB, image/png)
2020-03-16 15:10 UTC, Nate Graham
Details
kdeglobals from affected machine (3.44 KB, text/plain)
2020-03-17 16:51 UTC, Mike Simms
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ritalat 2020-02-12 12:16:15 UTC
Created attachment 125895 [details]
Broken font rendering on labels and fuzzy preview images

SUMMARY
With the 5.18 update some theme previews in system settings became blurry. The font rendering on the labels also broke.
The affected settings are:
  -global theme
  -plasma style
  -widget style
  -window style
  -icon style
  -cursor style

The color scheme previews and their labels are unaffected.


STEPS TO REPRODUCE
1. Open system settings and look at the sections listed above

OBSERVED RESULT
Label fonts are broken and theme previews are blurry.

EXPECTED RESULT
Sharp fonts and previews.


SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.18.0
KDE Frameworks Version: 5.67
Qt Version: 5.14.1
Comment 1 Jasmin 2020-02-12 13:13:22 UTC
*** Bug 417483 has been marked as a duplicate of this bug. ***
Comment 2 Nate Graham 2020-02-12 22:25:23 UTC
Cannot reproduce. This might be particular to certain graphics hardware.

What graphics hardware and software are you using?
Comment 3 Nate Graham 2020-02-12 22:26:30 UTC
Or here's a horrifying and depressing possibility: the workaround we added for https://bugreports.qt.io/browse/QTBUG-49646 in https://cgit.kde.org/kdeclarative.git/commit/?id=083b21c4073f8ae2aae0cbddf4a6fecb75240f9b causes this regression for some people.
Comment 4 ritalat 2020-02-13 03:50:31 UTC
(In reply to Nate Graham from comment #2)
> Cannot reproduce. This might be particular to certain graphics hardware.
> 
> What graphics hardware and software are you using?

Nvidia GTX 1070 with the proprietary 440.59 driver.
Comment 5 Nate Graham 2020-02-13 04:09:04 UTC
Thanks.

Are you able to test a patch, or willing to modify some system files to test a theory of mine?
Comment 6 ritalat 2020-02-13 04:36:32 UTC
(In reply to Nate Graham from comment #5)
> Thanks.
> 
> Are you able to test a patch, or willing to modify some system files to test
> a theory of mine?

Sure. I have some time to fiddle around later today.
Comment 7 deadite66 2020-02-13 06:27:27 UTC
Noticed some fonts were smaller since the update, tried to make them bigger but the settings won't stick.

change point size in Fonts, back to All Settings then back to Fonts and its stuck on the old size.
Comment 8 Yaroslav Sidlovsky 2020-02-13 07:16:33 UTC
(In reply to Nate Graham from comment #5)
> Thanks.
> 
> Are you able to test a patch, or willing to modify some system files to test
> a theory of mine?

I can test patch too.
So I need to revert commit 083b21c4073f8ae2aae0cbddf4a6fecb75240f9b, right?
Comment 9 Jasmin 2020-02-13 11:21:21 UTC
Also using the NVIDIA proprietary drivers, GTX960 here. Happy to apply patches to the system :)
Comment 10 Nate Graham 2020-02-13 14:52:11 UTC
(In reply to Yaroslav Sidlovsky from comment #8)
> (In reply to Nate Graham from comment #5)
> > Thanks.
> > 
> > Are you able to test a patch, or willing to modify some system files to test
> > a theory of mine?
> 
> I can test patch too.
> So I need to revert commit 083b21c4073f8ae2aae0cbddf4a6fecb75240f9b, right?
Yep.
Comment 11 Nate Graham 2020-02-13 22:23:29 UTC
Created attachment 125993 [details]
GridDelegate.qml

For those of you who don't want to or can't compile software, try replacing "GridDelegate.qml" on your system with 
the attached file, after backing up the original file somewhere safe.

On my system, it lives at /usr/lib64/qt5/qml/org/kde/kcm/GridDelegate.qml, but you can locate it with `find /usr | grep "kcm/GridDelegate.qml"`
Comment 12 ritalat 2020-02-14 06:48:00 UTC
Building kdeclarative without 083b21c4073f8ae2aae0cbddf4a6fecb75240f9b did not fix the issue.
Comment 13 Yaroslav Sidlovsky 2020-02-14 08:20:42 UTC
Just tried to replace GridDelegate.qml with those from attachment - still see font artefacts.
And seems like theme preview became more blurry than before.
Comment 14 Stefano 2020-02-14 11:28:28 UTC
I have the same issue on an Nvidia PC and on an Intel i915.

Operating System: Kubuntu 19.10
KDE Plasma Version: 5.18.0
KDE Frameworks Version: 5.67.0
Qt Version: 5.12.4
Kernel Version: 5.3.0-29-generic
OS Type: 64-bit
Processors: 2 × Intel® Core™2 Duo CPU P8600 @ 2.40GHz
Memory: 3,7 GiB
Comment 15 Jasmin 2020-02-14 11:40:41 UTC
(In reply to Yaroslav Sidlovsky from comment #13)
> Just tried to replace GridDelegate.qml with those from attachment - still
> see font artefacts.
> And seems like theme preview became more blurry than before.

Although I cannot confirm that it is more blurry, at least I can confirm that the bug still exists. Are there any other things we can help with? Logfiles or some parameters we can try to modify?
Comment 16 Cyril Rossi 2020-02-14 13:45:32 UTC
Same issue here. Blurry previews and font.
Tested with GridDelegate.qml attached, no change.

Let me know if I can help for tests.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.18.80
KDE Frameworks Version: 5.68.0
Qt Version: 5.13.2
Comment 17 Nate Graham 2020-02-14 15:32:02 UTC
*** Bug 416350 has been marked as a duplicate of this bug. ***
Comment 18 Nate Graham 2020-02-14 15:33:07 UTC
Darn, I guess it wasn't 083b21c4073f8ae2aae0cbddf4a6fecb75240f9b.
Comment 19 Mike Simms 2020-02-19 14:52:11 UTC
Still broken, version number bumped appropriately
Comment 20 yjcoshc 2020-03-02 23:37:59 UTC
Has anyone tried with a completely new user?
I created a new user and logged in using it, and the blurry of UI seemed to be vanished.
Comment 21 Mike Simms 2020-03-02 23:44:12 UTC
(In reply to yjcoshc from comment #20)
> Has anyone tried with a completely new user?
> I created a new user and logged in using it, and the blurry of UI seemed to
> be vanished.

Makes no difference to my affected machine. What I do know is I can only recreate it on the machine with a GTX960 using nvidia proprietary drivers (440.59 currently) and not my laptop which uses i915.

I tried it with the root account and a new account. Both of those exhibit the same behaviour as my normal user account.

Screen resolution is 1280x1024. Default desktop scaling of 1.0 but forced font dpi of 96 in font settings.
Comment 22 David Edmundson 2020-03-16 07:41:30 UTC
It's almost certainly a label with native rendering not being pixel aligned.

Especially as we're not using Text.align methods here.


If someone could run in gamma ray and find out that'd be great. Failing that include their kdeglobals file.
Comment 23 Nate Graham 2020-03-16 15:10:55 UTC
Created attachment 126832 [details]
In new GHNS dialog

I don't see the issue in grid delegates, but I think I see the same thing in the Close button on the new GHNS dialogs (see attachment). David, do you think that's the same issue?
Comment 24 Mike Simms 2020-03-17 16:51:16 UTC
Created attachment 126855 [details]
kdeglobals from affected machine

KDE Globals as requested
Comment 25 Nate Graham 2020-04-15 03:48:59 UTC
*** Bug 418943 has been marked as a duplicate of this bug. ***
Comment 26 joe 2020-05-06 01:56:14 UTC
Bug disappeared on version Plasma 5.18.5, even though i don't see anything related in the change log.
Comment 27 Jasmin 2020-05-06 08:33:57 UTC
Nope, not for me. Still present.

KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.69.0
Qt Version: 5.14.2
Kernel: 5.6.10-arch1-1
Comment 29 Jasmin 2020-05-07 14:33:16 UTC
Edited the file manually. Yes, that has fixed the bug. Nice, thank you!
Comment 30 Yaroslav Sidlovsky 2020-05-07 20:09:59 UTC
(In reply to Nate Graham from comment #28)
> Very likely fixed with
> https://cgit.kde.org/kdeclarative.git/commit/
> ?id=9725a21bcd0ee07c48be5077a735710c5658cf59!

Thanks! After applying this patch, everything looks good.
Comment 31 medin 2020-05-09 03:47:44 UTC
(In reply to Yaroslav Sidlovsky from comment #30)
> (In reply to Nate Graham from comment #28)
> > Very likely fixed with
> > https://cgit.kde.org/kdeclarative.git/commit/
> > ?id=9725a21bcd0ee07c48be5077a735710c5658cf59!
> 
> Thanks! After applying this patch, everything looks good.

With KDE 5.18.5 the bug is still persistent.
Comment 32 postix 2020-05-09 11:51:09 UTC
(In reply to medin from comment #31)
> (In reply to Yaroslav Sidlovsky from comment #30)
> > (In reply to Nate Graham from comment #28)
> > > Very likely fixed with
> > > https://cgit.kde.org/kdeclarative.git/commit/
> > > ?id=9725a21bcd0ee07c48be5077a735710c5658cf59!
> > 
> > Thanks! After applying this patch, everything looks good.
> 
> With KDE 5.18.5 the bug is still persistent.

The bug was reported against the wrong component. You have to wait for the 5.71 framework's update.