Created attachment 105993 [details]
gtk3 settings file generated by KDE Gtk Configurator
When you set "Roboto Condensed", actually used just "Roboto" in Gtk3 apps.
When I run gnome session "Roboto Condensed" setting is handled normally.
Because of this bug I need to create and use another version of this font with metadata not containing spaces.
I created new user (no old configs at all, only predefined from /etc/skel) and changed font to Roboto Condensed in Gnome, but this "settings.ini" was not even created.
Gnome3 handles it's settings using dconf.
I also tried to use quotes in my actual config, both double and single, around font name, like «"Roboto Condenced" 10», but it just defaulted to dejevu(probably).
I tested this on Debian Testing and Kubuntu (in VM) under KDE (5.8.6 and 5.9) and same result.
Fonts package in debian/ubuntu called: fonts-roboto.
Probably module expects font size after first space after font name, because size is also affected.
Kubuntu I've tested is from 17.04 release with KDE 5.9.4 update.
This is weird, if I use this font I get this setting:
gtk-font-name="Roboto Condensed Regular 8"
Can you make sure it's set up properly on your system? It looks odd that n yours it says "Condenced".
(In reply to Aleix Pol from comment #2)
> This is weird, if I use this font I get this setting:
> gtk-font-name="Roboto Condensed Regular 8"
> Can you make sure it's set up properly on your system? It looks odd that n
> yours it says "Condenced".
Sorry, I rechecked everything now, font setting I get in settings.ini is:
gtk-font-name=Roboto Condensed Regular 11
both in ubuntu and in debian. And no actual Condensed font used.
Font installed from distribution package by standart method.
Attached file is wrong because i was heavily experimenting with configuration.
I'm having the same problem. A comma should be added after the font name:
gtk-font-name="Roboto Condensed, Regular 8
*** Bug 416789 has been marked as a duplicate of this bug. ***
Git commit 8bf4efd764309d27c53d1f3b7ce4e235d9979127 by Mikhail Zolotukhin.
Committed on 26/01/2020 at 15:57.
Pushed by gikari into branch 'Plasma/5.18'.
Correctly process font, that has multiple words in family name
Separate family from other font characteristics with comma. It
partially solves the issue, because font dialog in Fonts KCM
allows you to choose the font with family name, constructed
with the font style.
# Restart `kded5`
# Change font in Fonts KCM to one, which name consist of two or more words separated with spaces
# GTK applications should now correctly use that font
Differential Revision: https://phabricator.kde.org/D26928
M +1 -1 kded/configvalueprovider.cpp