[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Review Request 119764: Fix BUG#105797: inappropriate fontconfig settings are
From:       "Fuminobu TAKEYAMA" <ftake () geeko ! jp>
Date:       2014-08-13 15:38:57
Message-ID: 20140813153857.14667.8454 () probe ! kde ! org
[Download RAW message or body]

--===============3515399858705679325==
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit


-----------------------------------------------------------
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


--===============3515399858705679325==
MIME-Version: 1.0
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: 7bit




<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="12" style="border: 1px #c9c399 \
solid; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px;">  \
<tr>  <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="https://git.reviewboard.kde.org/r/119764/">https://git.reviewboard.kde.org/r/119764/</a>
  </td>
    </tr>
   </table>
   <br />





<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="12" style="border: \
1px #888a85 solid; border-radius: 6px; -moz-border-radius: 6px; \
-webkit-border-radius: 6px;">  <tr>
  <td>

<div>Review request for Plasma.</div>
<div>By Fuminobu TAKEYAMA.</div>








<div style="margin-top: 1.5em;">
 <b style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Bugs: </b>


 <a href="https://bugs.kde.org/show_bug.cgi?id=105797">105797</a>


</div>



<div style="margin-top: 1.5em;">
 <b style="color: #575012; font-size: 10pt;">Repository: </b>
plasma-desktop
</div>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
 <table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" \
style="border: 1px solid #b8b5a0">  <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">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.</p> <p style="padding: 0;text-rendering: inherit;margin: \
0;line-height: inherit;white-space: inherit;">BUG: 105797</p></pre>  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: \
1px solid #b8b5a0">  <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">Remove ~/.fonts.conf and ~/.config/fontconfig/*</p> <p \
style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
inherit;">Open the font setting module and ensure that<br style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: normal;" /> \
~/.config/fontconfig/fonts.conf is not created before "Apply"</p> <p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">If \
"System Settings" are selected for "Use anti-aliasing" then<br style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: normal;" /> \
~/.config/fontconfig/fonts.conf (the name depends on environment)<br style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: normal;" /> \
does not contains the following entries:<br style="padding: 0;text-rendering: \
                inherit;margin: 0;line-height: inherit;white-space: normal;" />
- rgba<br style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
                inherit;white-space: normal;" />
- hinting<br style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
                inherit;white-space: normal;" />
- hintstyle<br style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
                inherit;white-space: normal;" />
- antialias</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">Enable antialiasing and set hinting style "None". The \
fontconfig file should contains:<br style="padding: 0;text-rendering: inherit;margin: \
0;line-height: inherit;white-space: normal;" />  &lt;match target="font"&gt;<br \
style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
normal;" />  &lt;edit mode="assign" name="hinting"&gt;<br style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: normal;" />  \
&lt;bool&gt;false&lt;/bool&gt;<br style="padding: 0;text-rendering: inherit;margin: \
0;line-height: inherit;white-space: normal;" />  &lt;/edit&gt;<br style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: normal;" />  \
&lt;/match&gt;<br style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: normal;" />  &lt;match target="font"&gt;<br style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: normal;" />  \
&lt;edit mode="assign" name="hintstyle"&gt;<br style="padding: 0;text-rendering: \
inherit;margin: 0;line-height: inherit;white-space: normal;" />  \
&lt;const&gt;hintnone&lt;/const&gt;<br style="padding: 0;text-rendering: \
inherit;margin: 0;line-height: inherit;white-space: normal;" />  &lt;/edit&gt;<br \
style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
normal;" />  &lt;/match&gt;<br style="padding: 0;text-rendering: inherit;margin: \
0;line-height: inherit;white-space: normal;" />  &lt;match target="font"&gt;<br \
style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
normal;" />  &lt;edit mode="assign" name="antialias"&gt;<br style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: normal;" />  \
&lt;bool&gt;true&lt;/bool&gt;<br style="padding: 0;text-rendering: inherit;margin: \
0;line-height: inherit;white-space: normal;" />  &lt;/edit&gt;<br style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: normal;" />  \
&lt;/match&gt;</p> <p style="padding: 0;text-rendering: inherit;margin: \
0;line-height: inherit;white-space: inherit;">Then revert hinting style to "System \
default". The file should not contains:<br style="padding: 0;text-rendering: \
                inherit;margin: 0;line-height: inherit;white-space: normal;" />
- hinting<br style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
                inherit;white-space: normal;" />
- hintstyle</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">Changing sub-pixel rendering to "None" adds:<br \
style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
normal;" />  &lt;match target="font"&gt;<br style="padding: 0;text-rendering: \
inherit;margin: 0;line-height: inherit;white-space: normal;" />  &lt;edit \
mode="assign" name="rgba"&gt;<br style="padding: 0;text-rendering: inherit;margin: \
0;line-height: inherit;white-space: normal;" />  &lt;const&gt;none&lt;/const&gt;<br \
style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
normal;" />  &lt;/edit&gt;<br style="padding: 0;text-rendering: inherit;margin: \
0;line-height: inherit;white-space: normal;" />  &lt;/match&gt;<br style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: normal;" /> to \
the file.</p></pre>  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>kcms/fonts/kxftconfig.h <span style="color: \
grey">(9efa9f5857ee81881916936b5036f79d3bb329c2)</span></li>

 <li>kcms/fonts/kxftconfig.cpp <span style="color: \
grey">(6f3465f1cbc7b5231c11a6be40ee3c4ea96bb94e)</span></li>

 <li>kcms/fonts/fonts.cpp <span style="color: \
grey">(1b5175eceb44ab93b642e02daca3e8a3a758a389)</span></li>

 <li>kcms/fonts/fonts.h <span style="color: \
grey">(5b9f5d895cdfbf385f06994c182a83ae3722c2e1)</span></li>

</ul>

<p><a href="https://git.reviewboard.kde.org/r/119764/diff/" style="margin-left: \
3em;">View Diff</a></p>






  </td>
 </tr>
</table>




  </div>
 </body>
</html>


--===============3515399858705679325==--



_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic