Review Request 119764: Fix BUG#105797: inappropriate fontconfig settings are saved when kcontrol/fonts is shown and no way to revert them
Eike Hein
hein at kde.org
Sun Sep 28 12:45:58 UTC 2014
> On Sept. 19, 2014, 2 p.m., Eike Hein wrote:
> > Makes sense to me and seems to work well in testing.
Fuminobu, do you need someone to commit this for you?
- Eike
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/119764/#review66956
-----------------------------------------------------------
On Aug. 13, 2014, 4:01 p.m., Fuminobu TAKEYAMA wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/119764/
> -----------------------------------------------------------
>
> (Updated Aug. 13, 2014, 4:01 p.m.)
>
>
> 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.
>
> Selecting "System default" also reverts Xft configs.
>
> 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>
>
> $ xrdb -q | grep hint
> should return empty
>
> 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.
>
> $ xrdb -q | grep hint
> now returns:
> Xft.hinting: 0
> Xft.hintstyle: hintnone
>
>
> Thanks,
>
> Fuminobu TAKEYAMA
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20140928/a7d11e96/attachment.html>
More information about the Plasma-devel
mailing list