Bug 421393 - Gtk font sizes are incorrect upon upgrade (new installs are unaffected)
Summary: Gtk font sizes are incorrect upon upgrade (new installs are unaffected)
Status: CONFIRMED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_style (other bugs)
Version First Reported In: 5.18.5
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-12 06:30 UTC by Pierre JUHEN
Modified: 2020-11-23 06:21 UTC (History)
5 users (show)

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


Attachments
preview of gtk and gtk3 aside on the same 27" screen (1920x1080) (243.02 KB, image/png)
2020-06-15 16:04 UTC, Pierre JUHEN
Details
Same with export GDK_DPI_SCALE=0.9 (176.95 KB, image/png)
2020-06-15 16:17 UTC, Pierre JUHEN
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre JUHEN 2020-05-12 06:30:44 UTC
SUMMARY

1/ Gtk module doesn't show up in Fedora 32 KDE configuration  panel
2/ Previous GTK parameters are not used (font size for example)

STEPS TO REPRODUCE
1. Upgrade to Fedora 32 (I didn't do a fresh install)

OBSERVED RESULT
No module appears on the panel
Gtk application (Thunderbird, Google Chrome) use wrong font size


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 32
(available in About System)
KDE Plasma Version: 5.18.4/5
KDE Frameworks Version: 
Qt Version: 5.13.2

ADDITIONAL INFORMATION

Downgrading this very module (kde-gtk-config) to 5.17.5 solves the issue.

The following line appears in the log about 20 times :

kded5[1982]: QDBusAbstractAdaptor: Cannot relay signal KDEDModule::moduleDeleted(KDEDModule*): Pointers are not supported: KDEDModule*

Thanks,

Regards
Comment 1 Pierre JUHEN 2020-06-13 05:45:14 UTC
Nobody cares about this bug ?
Comment 2 Mikhail Zolotukhin 2020-06-13 09:12:27 UTC
Sorry! I overlooked this bug report. Could you reproduce the issue on a fresh install or live USB?
Comment 3 Pierre JUHEN 2020-06-13 10:21:29 UTC
Sorry, I didn't notice the change (new button instead of menu entry). But there is still one slight bug. GTK3 application don't use the right font size (too big), whilst GTK2 applications do.
Comment 4 Mikhail Zolotukhin 2020-06-13 11:46:27 UTC
Sorry, cannot reproduce. Could you please send the fonts you're using in Fonts System Settings page and the contents of the ~/.config/gtk-3.0/settings.ini?
Comment 5 Pierre JUHEN 2020-06-13 16:37:08 UTC
I use Liberation Sans.

I was able to have the same look between gtk2 and gtk3 by adding "export 
GDK_DPI_SCALE=0.825" in .bash_profile.

It seems to be a known issue.


Le 13/06/2020 à 13:46, Mikhail Zolotukhin a écrit :
> https://bugs.kde.org/show_bug.cgi?id=421393
>
> --- Comment #4 from Mikhail Zolotukhin <zomial@protonmail.com> ---
> Sorry, cannot reproduce. Could you please send the fonts you're using in Fonts
> System Settings page and the contents of the ~/.config/gtk-3.0/settings.ini?
>
Comment 6 Mikhail Zolotukhin 2020-06-15 13:11:47 UTC
What size are you using? What's inside ~/.config/gtk-3.0/settings.ini?
Comment 7 Pierre JUHEN 2020-06-15 15:58:51 UTC
Here is .config/gtk-3.0/settings.ini

[Settings]
gtk-application-prefer-dark-theme=0
gtk-button-images=1
gtk-cursor-theme-name=Adwaita
gtk-decoration-layout=icon:minimize,maximize,close
gtk-enable-animations=1
gtk-fallback-icon-theme=breeze
gtk-font-name=Liberation Sans,  11
gtk-icon-theme-name=breeze
gtk-menu-images=1
gtk-primary-button-warps-slider=0
gtk-theme-name=Breeze
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
Comment 8 Pierre JUHEN 2020-06-15 16:04:49 UTC
Created attachment 129388 [details]
preview of gtk and gtk3 aside on the same 27" screen (1920x1080)

The gtk3 preview is significantly bigger (with bigger font)  on a 27" screen. On a 15" there are about the same size
Comment 9 Pierre JUHEN 2020-06-15 16:17:50 UTC
Created attachment 129390 [details]
Same with export GDK_DPI_SCALE=0.9
Comment 10 Mikhail Zolotukhin 2020-06-15 16:21:16 UTC
If you change the global scale in Display Configuration in System Settings to 100%, do the fonts become the equal size? If you change it to 125% or other scale?
Comment 11 Pierre JUHEN 2020-06-15 16:47:58 UTC
(In reply to Mikhail Zolotukhin from comment #10)
> If you change the global scale in Display Configuration in System Settings
> to 100%, do the fonts become the equal size? If you change it to 125% or
> other scale?

Yes, even if i get rid of export GDK_DPI_SCALE

Seems you found the issue
Comment 12 Mikhail Zolotukhin 2020-06-15 17:03:23 UTC
The problem is, that DPI scaling was incorrectly applied to GTK application. It is a fault of previous configuration. If you could, please check if you can reproduce this issue on a fresh Fedora KDE Spin install. Also, did you installed KDE on Fedora by yourself or used a Fedora KDE Spin?
Comment 13 Pierre JUHEN 2020-06-15 21:00:33 UTC
(In reply to Mikhail Zolotukhin from comment #12)
> The problem is, that DPI scaling was incorrectly applied to GTK application.
> It is a fault of previous configuration. If you could, please check if you
> can reproduce this issue on a fresh Fedora KDE Spin install. Also, did you
> installed KDE on Fedora by yourself or used a Fedora KDE Spin?

On a USB live key with Fedora 32 KDE respin, the problem doesn't occur.

There has been a long time (> 5 years) I didn't do a fresh install on this PC. the two other ones are updates form a fresh install of Fedora 30. I think I upgraded from fedora 3, then 4, then plasma...

I erased yesterday .config and .gconf, and did a reconfiguration, but It didn't solve the issue.  

Maybe I will do a fresh install, but I have to be careful...
Comment 14 Pierre JUHEN 2020-06-15 21:01:51 UTC
What file should I erase to get rid of the faulty configuration ?