https://bugs.kde.org/show_bug.cgi?id=450175

Nicolas Fella <nicolas.fe...@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nicolas.fe...@gmx.de

--- Comment #7 from Nicolas Fella <nicolas.fe...@gmx.de> ---
The short answer to this is: Install xdg-desktop-portal-gtk to fix this

The detailed answer is:

When GTK renders fonts it needs to decide whether or not to apply
anti-aliasing. For this it reads some kind of setting. When using
GTK_USE_PORTAL=1 it uses the org.freedesktop.portal.Settings portal. In
particular it reads the key "org.gnome.desktop.interface:font-antialiasing".
Now xdg-desktop-portal-kde doesn't know anything about Gnome settings and just
returns an empty reply. GTK then proceeds to not apply anti-aliasing, which
results in the broken fonts you are seeing.

When installing xdg-desktop-portal-gtk there is now an additional portal
backend to -kde (I didn't know portals could co-exist like that), and when
asked about the anti-aliasing setting xdg-desktop-portal-gtk returns
"grayscale", GTK applies that and fonts look proper.

To me it sounds very questionable that GTK needs xdg-desktop-portal-gtk to have
sensible behavior, but that needs discussion with GTK/portals upstream

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to