2025-03-21
The mystery (to me) of tiny font sizes in KDE programs I run
Over on the Fediverse I tried a KDE program and ran into a common issue for me:
It has been '0' days since a KDE app started up with too-small fonts on my bespoke fvwm based desktop, and had no text zoom. I guess I will go use a browser, at least I can zoom fonts there.
Maybe I could find a KDE settings thing and maybe find where and why KDE does this (it doesn't happen in GNOME apps), but honestly it's simpler to give up on KDE based programs and find other choices.
(The specific KDE program I was trying to use this time was NeoChat.)
My fvwm based desktop environment has an XSettings daemon running, which I use in part to set up a proper HiDPI environment (also, which doesn't talk about KDE fonts because I never figured that out). I suspect that my HiDPI display is part of why KDE programs often or always seem to pick tiny fonts, but I don't particularly know why. Based on the xsettingsd documentation and the registry, there doesn't seem to be any KDE specific font settings, and I'm setting the Gtk/FontName setting to a font that KDE doesn't seem to be using (which I could only verify once I found a way to see the font I was specifying).
After some searching I found the systemsettings
program through
the Arch wiki's page on KDE and was able
to turn up its font sizes in a way that appears to be durable (ie,
it stays after I stop and start systemsettings
). However, this
hasn't affected the fonts I see in NeoChat when I run it again.
There are a bunch of font settings, but maybe NeoChat is using the
'small' font for some reason (apparently which app uses what font
setting can be variable).
QT (the underlying GUI toolkit of much or all of KDE) has its own
set of environment variables for scaling things on HiDPI displays, and setting $QT_SCALE_FACTOR
does size up NeoChat (although apparently bits of Plasma ignore
these, although
I think I'm unlikely to run into this since I don't want to use
KDE's desktop components).
Some KDE applications have their own settings files with their own font sizes; one example I know if is kdiff3. This is quite helpful because if I'm determined enough, I can either adjust the font sizes in the program's settings or at least go edit the configuration file (in this case, .config/kdiff3rc, I think, not .kde/share/config/kdiff3rc). However, not all KDE applications allow you to change font sizes through either their GUI or a settings file, and NeoChat appears to be one of the ones that don't.
In theory now that I've done all of this research I could resize
NeoChat and perhaps other KDE applications through $QT_SCALE_FACTOR
.
In practice I feel I would rather switch to applications that
interoperate better with the rest of my environment unless for some
reason the KDE application is either my only choice or the significantly
superior one (as it has been so far for kdiff3 for my usage).