Bug 408415

Summary: kcm_fonts unable to change previous exclude range
Product: [Plasma] plasmashell Reporter: Fabian Vogt <fabian>
Component: generalAssignee: David Edmundson <kde>
Status: RESOLVED FIXED    
Severity: normal CC: bhush94, nate, plasma-bugs
Priority: NOR    
Version: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Fabian Vogt 2019-06-07 11:00:10 UTC
1. Remove ~/.config/fontconfig/fonts.conf and .config/kcmfontsrc for a clean start
2. kcmshell5 kcm_fonts
3. Anti-aliasing: Enabled, Exclude range enabled and save
4. Change "to 15pt" to "to 14pt" and save
5. Now fonts.conf contains duplicated entries for antialias exclusion
6. Disable exclude range again and save
7. Exclude entry remains in fonts.conf
Comment 1 Bhushan Shah 2019-06-12 07:01:55 UTC
Git commit 08ec9a036bf5b3ee102938ad332f624adc1060b9 by Bhushan Shah.
Committed on 12/06/2019 at 07:00.
Pushed by bshah into branch 'Plasma/5.16'.

Replace the excludeRange mode setting when already available

Summary:
Instead of appending a new entry.
Related: bug 244857

Test Plan:
- remove fonts.conf
- start fonts kcm
- enable exclude range
- save
- see config is added only once
- modify config
- save
- see config is replaced and not added again
- disable exclude range
- save
- see config is totally removed.

Reviewers: fvogt

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D21748

M  +5    -1    kcms/fonts/kxftconfig.cpp

https://commits.kde.org/plasma-desktop/08ec9a036bf5b3ee102938ad332f624adc1060b9