Correctly process font, that has multiple words in family name
ClosedPublic

Authored by gikari on Sun, Jan 26, 3:24 PM.

Details

Summary

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.

BUG: 380980
FIXED-IN: 5.18.0

Test Plan
  1. Restart kded5
  2. Change font in Fonts KCM to one, which name consist of two or more words separated with spaces
  3. GTK applications should now correctly use that font

Diff Detail

Repository
R99 KDE Gtk Configuration Tool
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
gikari created this revision.Sun, Jan 26, 3:24 PM
Restricted Application added a project: Plasma. · View Herald TranscriptSun, Jan 26, 3:24 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
gikari requested review of this revision.Sun, Jan 26, 3:24 PM
ngraham accepted this revision.Sun, Jan 26, 3:47 PM
This revision is now accepted and ready to land.Sun, Jan 26, 3:47 PM

Can't style names have a space too?

This revision was automatically updated to reflect the committed changes.

Can't style names have a space too?

If you add comma after style too, it would break font config reading. But there is a workaround for that - you can select font with that style in font family name: