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