Setting the environment variable `GTK_USE_PORTAL=1` under Wayland results in awful/unreadable fonts
I first encountered this bug, testing out Firefox in Wayland, but after digging around I found that the problem was a GTK related bug.
Steps to reproduce
Note: If you are not using Wayland, I don't think you can reproduce this bug.
- Run the following command
env 'GDK_BACKEND=wayland' env 'GTK_USE_PORTAL=1' gtk3-widget-factory
- See if you encounter awful/unreadable fonts
- That is it, otherwise there is something is missing
Current behavior
As you can see the current behavior with the environment variable GTK_USE_PORTAL=1
(under Wayland) is some awful fonts, I am unsure what the courses this
Expected outcome
The expected behavior is the nice fonts I get when setting the environment variable GTK_USE_PORTAL=0
, or not setting it at all (under Wayland) is nice looking/readable fonts.
Note: I also get these readable fonts using x11 (GDK_BACKEND=x11
) no matter if I set GTK_USE_PORTAL
to 1
or 0
.
Version information
- GTK3 version 3.24.28
- OS: ArchLinux
- GTK is installed from the package manager
- Desktop environment is KDE (under Wayland)
Additional information
I am happy to provide additional information, if there is something I am missing. Also, I am happy to help with testing/debug to the best of my abilities :D