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

List:       kde-core-devel
Subject:    Re: Review Request: Do not modify .fonts.conf when loading it. Now
From:       Thomas_Lübking <thomas.luebking () web ! de>
Date:       2011-05-26 14:03:19
Message-ID: 20110526140319.1038.65007 () vidsolbach ! de
[Download RAW message or body]

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/101359/#review3538
-----------------------------------------------------------


> Would there even be any good alternative approaches?
Yes, 
- properly read the fontconfig (including global settings)
- only write settings actually touched by the user
- have a checkbox to disable custom font configuration (i.e if not enabled, store the \
settings in a private config for later use, but wipe the ~/.fonts.conf

- Thomas


On May 25, 2011, 8:11 p.m., Nikolaus Waxweiler wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/101359/
> -----------------------------------------------------------
> 
> (Updated May 25, 2011, 8:11 p.m.)
> 
> 
> Review request for KDE Base Apps and KDE Runtime.
> 
> 
> Summary
> -------
> 
> I simply removed all code in loading routines that wrote something to the config.
> 
> On a side-note, I'd love to rip out the whole fontconfig configuration \
> completely... I think that the whole modifying-.fonts.conf-approach is too fickle \
> because the system/distribution can set up elaborate hinting/antialiasing \
> configurations and the changes made to .fonts.conf just bulldoze over them. Most \
> people will probably never (really want to) touch those settings anyway (Windows \
> and Mac OS X users at least don't seem to, and they don't appear to be unhappy \
> about it)... Would there even be any good alternative approaches? 
> 
> This addresses bug 105797.
> http://bugs.kde.org/show_bug.cgi?id=105797
> 
> 
> Diffs
> -----
> 
> kcontrol/fonts/fonts.cpp 0cd2666 
> kcontrol/fonts/kxftconfig.cpp 9cd04de 
> 
> Diff: http://git.reviewboard.kde.org/r/101359/diff
> 
> 
> Testing
> -------
> 
> - Delete .fonts.conf and see if invoking "kcmshell4 fonts" creates it again without \
>                 user intervention
> - Delete various match-settings set by the kcm (e.g. hintstyle and rgba) and see if \
>                 it recreates them while leaving match-settings not deleted \
>                 untouched
> - Switch anti-aliasing settings between system, disbled and enabled and apply each \
> time, change some aa-settings while enabled and check if they stay there after \
> switching 
> 
> Thanks,
> 
> Nikolaus
> 
> 


[Attachment #3 (text/html)]

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





 <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">&gt; Would there even be \
any good alternative approaches? Yes, 
- properly read the fontconfig (including global settings)
- only write settings actually touched by the user
- have a checkbox to disable custom font configuration (i.e if not enabled, store the \
settings in a private config for later use, but wipe the ~/.fonts.conf</pre>  <br />







<p>- Thomas</p>


<br />
<p>On May 25th, 2011, 8:11 p.m., Nikolaus Waxweiler wrote:</p>






<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" \
style="background-image: \
url('http://git.reviewboard.kde.org/media/rb/images/review_request_box_top_bg.png'); \
background-position: left top; background-repeat: repeat-x; border: 1px black \
solid;">  <tr>
  <td>

<div>Review request for KDE Base Apps and KDE Runtime.</div>
<div>By Nikolaus Waxweiler.</div>


<p style="color: grey;"><i>Updated May 25, 2011, 8:11 p.m.</i></p>




<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;">I simply removed all code in loading routines that wrote something to \
the config.

On a side-note, I&#39;d love to rip out the whole fontconfig configuration \
completely... I think that the whole modifying-.fonts.conf-approach is too fickle \
because the system/distribution can set up elaborate hinting/antialiasing \
configurations and the changes made to .fonts.conf just bulldoze over them. Most \
people will probably never (really want to) touch those settings anyway (Windows and \
Mac OS X users at least don&#39;t seem to, and they don&#39;t appear to be unhappy \
about it)... Would there even be any good alternative approaches?</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;">- Delete .fonts.conf and see if invoking &quot;kcmshell4 fonts&quot; \
                creates it again without user intervention
- Delete various match-settings set by the kcm (e.g. hintstyle and rgba) and see if \
                it recreates them while leaving match-settings not deleted untouched
- Switch anti-aliasing settings between system, disbled and enabled and apply each \
time, change some aa-settings while enabled and check if they stay there after \
switching</pre>  </td>
 </tr>
</table>



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


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


</div>


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

 <li>kcontrol/fonts/fonts.cpp <span style="color: grey">(0cd2666)</span></li>

 <li>kcontrol/fonts/kxftconfig.cpp <span style="color: grey">(9cd04de)</span></li>

</ul>

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




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








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



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

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