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

Authored by gikari on Jan 26 2020, 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
Branch
apply-font-styles-correctly (branched from master)
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 21679
Build 21697: arc lint + arc unit
gikari created this revision.Jan 26 2020, 3:24 PM
Restricted Application added a project: Plasma. · View Herald TranscriptJan 26 2020, 3:24 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
gikari requested review of this revision.Jan 26 2020, 3:24 PM
ngraham accepted this revision.Jan 26 2020, 3:47 PM
This revision is now accepted and ready to land.Jan 26 2020, 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: