Bug 420769 - Font rendering is different (not quite as sharp) in applications that use Kirigami
Summary: Font rendering is different (not quite as sharp) in applications that use Kir...
Status: RESOLVED NOT A BUG
Alias: None
Product: frameworks-kirigami
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.68.0
Platform: Ubuntu Linux
: NOR minor
Target Milestone: Not decided
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-29 21:08 UTC by QwertyChouskie
Modified: 2020-06-02 14:47 UTC (History)
3 users (show)

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


Attachments
Plasma Discover font rendering (73.69 KB, image/png)
2020-04-29 21:08 UTC, QwertyChouskie
Details
Comparison of font rendering (182.86 KB, image/png)
2020-05-01 17:09 UTC, QwertyChouskie
Details

Note You need to log in before you can comment on or make changes to this bug.
Description QwertyChouskie 2020-04-29 21:08:31 UTC
Created attachment 128013 [details]
Plasma Discover font rendering

SUMMARY
Fonts in applications that use Kirigami have very blurry font rendering.

STEPS TO REPRODUCE
1. Set system font to Noto Sans 9
2. Open a Kirigami-using application such as KDE Connect SMS or Plasma Discover

OBSERVED RESULT
Fonts render terribly

EXPECTED RESULT
Fonts render well

SOFTWARE/OS VERSIONS
KDE Plasma Version: N/A (XFCE 4.14)
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8

ADDITIONAL INFORMATION
My system is based on XFCE 4.14 (Xubuntu 20.04), though after setting the QT widget style to Plasma things still look the same.  I haven't tested many other system fonts, but none of the ones I tested looked fully proper.
Comment 1 Nate Graham 2020-05-01 13:30:12 UTC
I can't distinguish any "super blurry fonts" in your screenshot. Can you attach a screenshot of a non-Kirigami-based QWidgets app like Golphin or Gwenview that shows how you think the fonts should look?
Comment 2 QwertyChouskie 2020-05-01 17:09:11 UTC
Created attachment 128063 [details]
Comparison of font rendering

Here's a screenshot that shows the font rendering in various applications.  From left, the first is Thunar, GTK-based, and has the (IMO) best font rendering.  The next is a qt5 app (qt5ct), which has imperfect but decent font rendering.  On the right are two Kirigami-based applications, with very noticeable font blurring.
Comment 3 Nate Graham 2020-05-03 01:12:49 UTC
Ah, I see it now. I don't think I ever would have if you hadn't pointed it out though! Doesn't looks like Plasma is affected, so it's not all QML software that's affected.
Comment 4 Filip Fila 2020-06-02 14:38:06 UTC
I can't reproduce this, but it looks like hinting is turned off in Discover (QML). What's in the .config/fontconfig folder?

Btw you should avoid using qt5ct as it tries to take over Plasma theming and doesn't do as good of a job as Plasma. It's precisely known for messing up QML apps. You could also try removing it to see if it changes anything.
Comment 5 Filip Fila 2020-06-02 14:47:38 UTC
Yeah this should be a qt5ct bug. I just reproduced it by setting the QT_QPA_PLATFORMTHEME to qt5ct. It insists on doing its own font rendering for QML and disobeys the Plasma setting.