Review Request 119764: Fix BUG#105797: inappropriate fontconfig settings are saved when kcontrol/fonts is shown and no way to revert them

Fuminobu TAKEYAMA ftake at geeko.jp
Wed Aug 13 15:38:57 UTC 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/119764/
-----------------------------------------------------------

Review request for Plasma.


Bugs: 105797
    https://bugs.kde.org/show_bug.cgi?id=105797


Repository: plasma-desktop


Description
-------

Fix kcontrol/fonts saves fontconfig settings when it is opened. Add "System default" to each config. It removes a corresponding fontconfig entry made by this module. "System default" is now default values for sub-pixel rendering and hinting.

BUG: 105797


Diffs
-----

  kcms/fonts/kxftconfig.h 9efa9f5857ee81881916936b5036f79d3bb329c2 
  kcms/fonts/kxftconfig.cpp 6f3465f1cbc7b5231c11a6be40ee3c4ea96bb94e 
  kcms/fonts/fonts.cpp 1b5175eceb44ab93b642e02daca3e8a3a758a389 
  kcms/fonts/fonts.h 5b9f5d895cdfbf385f06994c182a83ae3722c2e1 

Diff: https://git.reviewboard.kde.org/r/119764/diff/


Testing
-------

Remove ~/.fonts.conf and ~/.config/fontconfig/*

Open the font setting module and ensure that
~/.config/fontconfig/fonts.conf is not created before "Apply"

If "System Settings" are selected for "Use anti-aliasing" then
~/.config/fontconfig/fonts.conf (the name depends on environment)
does not contains the following entries:
- rgba
- hinting
- hintstyle
- antialias

Enable antialiasing and set hinting style "None". The fontconfig file should contains:
 <match target="font">
  <edit mode="assign" name="hinting">
   <bool>false</bool>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hintstyle">
   <const>hintnone</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="antialias">
   <bool>true</bool>
  </edit>
 </match>

Then revert hinting style to "System default". The file should not contains:
- hinting
- hintstyle

Changing sub-pixel rendering to "None" adds:
 <match target="font">
  <edit mode="assign" name="rgba">
   <const>none</const>
  </edit>
 </match>
to the file.


Thanks,

Fuminobu TAKEYAMA

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20140813/046bd8b5/attachment-0001.html>


More information about the Plasma-devel mailing list