Bug 487714 - Synchronize more font settings to gtk
Summary: Synchronize more font settings to gtk
Status: CONFIRMED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_style (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-28 21:37 UTC by Ilya Fedin
Modified: 2024-10-07 05:16 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Fedin 2024-05-28 21:37:04 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
I checked gtk settings on my machine and found that kde-gtk-config seem to not to sync anything except of gtk-font-name. But there's more to sync (description / settings.ini key / gsettings key / xsettings key):

Antialiasing (0 / 1): gtk-xft-antialias / org.gnome.desktop.interface.font-antialiasing (none / grayscale / rgba) / Xft/Antialias
Hinting (0 / 1): gtk-xft-hinting / <none> / Xft/Hinting
Hint style (hintnone / hintslight / hintmedium / hintfull): gtk-xft-hintstyle / org.gnome.desktop.interface.font-hinting / Xft/HintStyle
RGB subpixel order (rgba (none) / rgb / bgr / vrgb / vbgr): gtk-xft-rgba / org.gnome.desktop.interface.font-rgba-order / Xft/RGBA
Monospace font: <none> / org.gnome.desktop.interface.monospace-font-name / <none>
Document font (KDE doesn't seem to have this, perhaps set the general one?): <none> / org.gnome.desktop.interface.document-font-name / <none>

STEPS TO REPRODUCE
1. Check settings.ini / org.gnome.desktop.interface section in dconf-editor / dump_xsettings

OBSERVED RESULT
Font settings to be set

EXPECTED RESULT
Font settings aren't set except of gtk-font-name (general font)

SOFTWARE/OS VERSIONS
Operating System: NixOS 24.11
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.1
Kernel Version: 6.9.1-zen1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
Memory: 5.7 ГиБ of RAM
Graphics Processor: AMD Radeon Vega 8 Graphics
Comment 1 Nate Graham 2024-06-10 23:33:34 UTC
Good idea, wanna submit a patch?
Comment 2 Ilya Fedin 2024-06-27 06:02:21 UTC
No, unlikely I will do that... 😅
Comment 3 Ilya Fedin 2024-09-30 23:09:04 UTC
Since gtk 4.16, one has to set a new setting to 'manual' for other font rendering settings to work: gtk-font-rendering / org.gnome.desktop.interface.font-rendering / <none>

https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/7113

The MR also mentions a settings.ini-only gtk-hint-font-metrics setting (which is not new) that control subpixel positioning of text