Bug 416789

Summary: Missing comma after font name in generated GTK configuration files causes the wrong font to be applied in GTK applications.
Product: [Applications] systemsettings Reporter: Can Aksu <canaksu>
Component: kcm_fontsAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: 5.17.90   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: gtk3 configuration file. Relevant line is number ten.
gtk2 configuration file. Relevant line is number 7.
the correct gtk2 configuration file
the correct gtk3 configuration file

Description Can Aksu 2020-01-26 15:00:53 UTC
Created attachment 125437 [details]
gtk3 configuration file. Relevant line is number ten.

SUMMARY
When a font with a space in its name is selected, missing comma after font name in generated GTK configuration files causes the wrong font to be applied.

STEPS TO REPRODUCE
1. In font settings, select a font that contains a space in its name e.g. Roboto Condensed. In 5.17.90, it will be applied to GTK.
2. Open a GTK application.

OBSERVED RESULT
GTK applications display Roboto font.

EXPECTED RESULT
GTK applications display Roboto Condensed font.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux, using Kde-Unstable repository.
(available in About System)
KDE Plasma Version: 5.17.90
KDE Frameworks Version: 5.66.0
Qt Version: 5.14.0

ADDITIONAL INFORMATION
Putting a comma after the font name and before the font size fixes the problem.
Comment 1 Can Aksu 2020-01-26 15:01:49 UTC
Created attachment 125438 [details]
gtk2 configuration file. Relevant line is number 7.
Comment 2 Can Aksu 2020-01-26 15:04:55 UTC
It seems that I uploaded files that were generated by Lxappearance which I used to fix the issue. Will upload the correct files.
Comment 3 Can Aksu 2020-01-26 15:11:21 UTC
Created attachment 125439 [details]
the correct gtk2 configuration file
Comment 4 Can Aksu 2020-01-26 15:12:07 UTC
Created attachment 125440 [details]
the correct gtk3 configuration file
Comment 5 Can Aksu 2020-01-26 15:17:31 UTC

*** This bug has been marked as a duplicate of bug 380980 ***