Text in GTK apps looks strange

hi, for some reason text in GTK apps looks very strange, pixelated, not correct, etc.

gimp:
image
image

audacity:
image

firewall:
image
and more…

however qt application work normarly:

im using kde plasma 5.27.3 and gtk 3.24.37

Posting once again a link from our colleagues on Arch:
Uniform look for Qt and GTK applications - ArchWiki

4.3 Improve subpixel rendering of GTK applications under KDE Plasma
See Font configuration#LCD filter.


4.4 Consistent file dialog under KDE Plasma

The factual accuracy of this article or section is disputed.

Reason: 
GTK seems to have replaced GTK_USE_PORTAL=1 with GDK_DEBUG=portals. https://gitlab.gnome.org/GNOME/gtk/-/blob/636827800525770715bba96671edb2fc0234ccc2/NEWS#L34 (Discuss in Talk:Uniform look for Qt and GTK applications)

In order to have the same file dialog, one can use XDG Portals.

Install xdg-desktop-portal and xdg-desktop-portal-kde and set GTK_USE_PORTAL=1 environment variable.
Note that currently not all GTK applications support KDE file dialogs correctly.

Applications using electron should use at least electron 14 (see #19159) and properly implement this function.

VSCode has a pull request for fixing a problem, see #126113.

GIMP has not implemented use of the portal yet, see bug report.
Note: There are still lots of GTK applications that do not implement portal properly (abandoned applications, or authors are focused on other tasks). To simplify file picking from such applications, you can at least synchronize bookmarks from dolphin to nautilus. Use this command:

$ awk -F\" '/<bookmark href=\"file/ {print $2}' < $HOME/.local/share/user-places.xbel > $HOME/.config/gtk-3.0/bookmarks

Alternatively, use bookmarksync-gitAUR for that purpose. There you can manually edit and sync bookmarks to both sides.

Probably point 4.3 & 4.4 could be interesting for your case.

i don’t know what is causing this issue, but i disabled and then enabled Anti-Alasing(settings → appearance → fonts → Anti-Alasing) and now text fixed.

1 Like