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

List:       kde-panel-devel
Subject:    Re: Review Request 119764: Fix BUG#105797: inappropriate fontconfig settings
From:       "Eike Hein" <hein () kde ! org>
Date:       2014-09-29 9:22:58
Message-ID: 20140929092258.15676.55931 () probe ! kde ! org
[Download RAW message or body]

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



> On Sept. 19, 2014, 2 p.m., Eike Hein wrote:
> > Makes sense to me and seems to work well in testing.
> 
> Eike Hein wrote:
> Fuminobu, do you need someone to commit this for you?
> 
> Fuminobu TAKEYAMA wrote:
> Yes, I don't have any commit rights for KDE repositories. (This is the first \
> change)

Pushed it. Thanks!


- Eike


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


On Sept. 29, 2014, 9:22 a.m., Fuminobu TAKEYAMA wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/119764/
> -----------------------------------------------------------
> 
> (Updated Sept. 29, 2014, 9:22 a.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
> 
> 


--===============7218782222030076373==
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 />





<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <p style="margin-top: 0;">On September 19th, 2014, 2 p.m. UTC, <b>Eike \
Hein</b> wrote:</p>  <blockquote style="margin-left: 1em; border-left: 2px solid \
#d0d0d0; padding-left: 10px;">  <pre style="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;">Makes sense to me and seems to work well in \
testing.</p></pre>  </blockquote>




 <p>On September 28th, 2014, 12:46 p.m. UTC, <b>Eike Hein</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <pre style="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;">Fuminobu, do you need someone to commit this for you?</p></pre>  \
</blockquote>





 <p>On September 28th, 2014, 12:48 p.m. UTC, <b>Fuminobu TAKEYAMA</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <pre style="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;">Yes, \
I don't have any commit rights for KDE repositories. (This is the first \
change)</p></pre>  </blockquote>








</blockquote>

<pre style="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;">Pushed it. Thanks!</p></pre> <br />










<p>- Eike</p>


<br />
<p>On September 29th, 2014, 9:22 a.m. UTC, Fuminobu TAKEYAMA wrote:</p>









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


<p style="color: grey;"><i>Updated Sept. 29, 2014, 9:22 a.m.</i></p>







<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;">Selecting "System default" also reverts \
Xft configs.</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;">$ xrdb -q | grep hint<br \
style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
normal;" /> should return empty</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> <p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">$ xrdb -q | grep hint<br style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: normal;" /> now \
returns:<br style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
                inherit;white-space: normal;" />
Xft.hinting:    0<br style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
                inherit;white-space: normal;" />
Xft.hintstyle:  hintnone</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>


--===============7218782222030076373==--



_______________________________________________
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