That did the job.<br><br>Thank you very much, Tomeu!<br>Emiliano<br><br><div class="gmail_quote">On Wed, Sep 23, 2009 at 11:27 AM, Tomeu Vizoso <span dir="ltr"><<a href="mailto:tomeu@sugarlabs.org">tomeu@sugarlabs.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">On Wed, Sep 23, 2009 at 15:27, Emiliano Pastorino<br>
<<a href="mailto:epastorino@plan.ceibal.edu.uy">epastorino@plan.ceibal.edu.uy</a>> wrote:<br>
> Hi, everyone<br>
><br>
> I've been asked to set a larger font size by default in Write activity for<br>
> children who are visually impaired.<br>
> I tried to edit "toolbar.py" like this:<br>
><br>
> ...<br>
> ...<br>
> for i, s in enumerate(self._font_sizes):<br>
> self._font_size_combo_append_item(i, s, None)<br>
> if s == '12':<br>
> self._font_size_combo.set_active(i)<br>
> ...<br>
> ...<br>
><br>
> I turned that '12' into a '48', but default size is still fixed at '12'.<br>
<br>
</div></div>Hi,<br>
<br>
that will make the option in the size combobox to be 48, but doesn't<br>
change the size in the canvas. For changing the font size in the<br>
canvas this should work:<br>
<br>
self.abiword_canvas.set_font_size('48')<br>
<br>
You can place this line in __map_event_cb in AbiwordActivity.py.<br>
<br>
Though, in this case it may be better to set the zoom size. You can do<br>
that with:<br>
<br>
self.abiword_canvas.set_zoom_percentage(400)<br>
<br>
Hope that helps,<br>
<br>
Tomeu<br>
<font color="#888888"><br>
--<br>
«Sugar Labs is anyone who participates in improving and using Sugar.<br>
What Sugar Labs does is determined by the participants.» - David<br>
Farning<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Ing. Emiliano Pastorino<br>LATU - Plan Ceibal<br>Av. Italia 6201 CP: 11500, Montevideo, Uruguay<br>Tel: (598 2) 601 5773 int.: 213<br>