<div dir="ltr">Here's a screenshot of the changes.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Feb 15, 2014 at 10:46 AM, Ryan Cunningham <span dir="ltr"><<a href="mailto:rvskmbrly3@gmail.com" target="_blank">rvskmbrly3@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div><br><br>Sent from my iPad</div><div><br>Begin forwarded message:<br><br></div><blockquote type="cite">
<div><b>From:</b> Daniel Narvaez <<a href="mailto:dwnarvaez@gmail.com" target="_blank">dwnarvaez@gmail.com</a>><br><b>Date:</b> February 15, 2014 at 10:44:57 AM PST<br><b>To:</b> Ryan Cunningham <<a href="mailto:rvskmbrly3@gmail.com" target="_blank">rvskmbrly3@gmail.com</a>><br>
<b>Cc:</b> iaep <<a href="mailto:iaep@lists.sugarlabs.org" target="_blank">iaep@lists.sugarlabs.org</a>><br><b>Subject:</b> <b>Re: [IAEP] Set GNU GPL in monospace font</b><br><br></div></blockquote><div><div class="h5">
<blockquote type="cite"><div><div dir="ltr"><div>Hi,<br><br></div>the best place to post this is sugar-devel, also put [DESIGN] in the title to attract design team attention. Thanks!<br></div><div class="gmail_extra"><br>
<br><div class="gmail_quote">On 15 February 2014 19:43, Ryan Cunningham <span dir="ltr"><<a href="mailto:rvskmbrly3@gmail.com" target="_blank">rvskmbrly3@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Are any of you convinced to set the GNU GPL in a monospace font in the 'About My Computer' control panel? If so, here's a patch for it (at the bottom).<br>
<br>
The GNU GPL text file (v2.0) looks quite bad in a proportional font; but someone over at your GitHub repositories said that proportional fonts are better for dyslexic people.<br>
<br>
Here, I import an additional standard PyGTK class, "Pango" (from the module "gi.repository"), to handle font switching.<br>
<br>
---<br>
diff --git a/extensions/cpsection/aboutcomputer/view.py b/extensions/cpsection/aboutcomputer/view.py<br>
index 6235e5c..5714145 100644<br>
--- a/extensions/cpsection/aboutcomputer/view.py<br>
+++ b/extensions/cpsection/aboutcomputer/view.py<br>
@@ -18,7 +18,7 @@<br>
<br>
from gettext import gettext as _<br>
<br>
-from gi.repository import Gtk<br>
+from gi.repository import Gtk, Pango<br>
from gi.repository import Gdk<br>
<br>
from sugar3.graphics import style<br>
@@ -206,6 +206,8 @@ def license_expander_cb(self, expander, param_spec):<br>
view_license = Gtk.TextView()<br>
view_license.set_editable(False)<br>
view_license.get_buffer().set_text(self._model.get_license())<br>
+ fd = Pango.FontDescription('Monospace')<br>
+ view_license.modify_font(fd)<br>
view_license.show()<br>
expander.add(view_license)<br>
else:<br>
_______________________________________________<br>
IAEP -- It's An Education Project (not a laptop project!)<br>
<a href="mailto:IAEP@lists.sugarlabs.org" target="_blank">IAEP@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/iaep" target="_blank">http://lists.sugarlabs.org/listinfo/iaep</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Daniel Narvaez<br>
</div>
</div></blockquote></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Ryan Cunningham<br>
</div>