Bug 415933

Summary: Fonts of gtk3 apps installed via flatpak are not antialiased on Wayland
Product: [Developer tools] Qt/KDE Flatpak Runtime Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: Aleix Pol <aleixpol>
Status: RESOLVED FIXED    
Severity: normal CC: aacid, ilgaz, jgrulich, katyaberezyaka, michal.dybczak, nate, pereira.alex
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
URL: https://github.com/flatpak/flatpak/issues/2861
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: filezilla from arch repos
filezilla from flathub

Description Patrick Silva 2020-01-06 14:58:37 UTC
Created attachment 124930 [details]
filezilla from arch repos

SUMMARY
The fonts look good on X11.
Several gtk3 apps from flathub are affected on my system under Wayland:
filezilla
transmission client torrent
rhythmbox player
feed reader
pdf tricks
pdf slicer

STEPS TO REPRODUCE
1. start Wayland session
2. install any app mentioned above via flatpak/flathub
3. open the just installed app

OBSERVED RESULT
Bad font rendering. Compare the attached screenshots.

EXPECTED RESULT
fonts are correctly rendered.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.17.4
KDE Frameworks Version: 5.65.0
Qt Version: 5.14.0
Comment 1 Patrick Silva 2020-01-06 14:59:12 UTC
Created attachment 124931 [details]
filezilla from flathub
Comment 3 soredake 2021-02-03 17:01:35 UTC
Apps not from flathub is affected too
Comment 4 Patrick Silva 2021-02-18 12:46:31 UTC
(In reply to soredake from comment #2)
> https://github.com/flatpak/flatpak/issues/2861

At least I have found a workaround in your link: install gnome-settings-daemon
package.
Comment 5 Aleix Pol 2021-06-22 23:34:11 UTC
If it's about apps, it sure isn't about our flatpak runtime. If installing a component fixes it, it's either a gtk issue or an issue from your distro misdetecting dependencies.

Marking as a downstream issue, please reopen if you think I missed something.
Comment 6 Nicolas Fella 2022-03-29 14:12:57 UTC
*** Bug 450175 has been marked as a duplicate of this bug. ***
Comment 7 Nate Graham 2022-03-29 23:09:12 UTC
Possible workaround: xdg-desktop-portal-gtk.

See also https://github.com/flatpak/flatpak/issues/2861

For what it's worth, it still happens to me even with xdg-desktop-portal-gtk installed, so I guess it is just a real downstream issue.
Comment 8 Alexandre Pereira 2022-12-17 05:19:27 UTC
> For what it's worth, it still happens to me even with xdg-desktop-portal-gtk installed, so I guess it is just a real downstream issue.

I just had this issue, and installed xdg-desktop-portal-gtk, and it seemed it didn't work, but after restarting systemctl --user xdg-desktop-portal it works ( if one does not restart it, it doesn't work ).

Hope it helps !