FWIW, this is a method I include in all my (strictly text-based) activities.
It both sizes fonts to fit on various-width screens, and allows a user (or
deployment) to decrease/increase font size. (It also works with all versions
of Sugar for the XO and SoaS, to my knowledge.)
def scale_font(self, widget):
font = widget.get_pango_context().get_font_description()
# The FONT DISPLAY in this activity can be resized (smaller or larger)
# by changing the value of "resize" below. "Resize" can be positive
# or negative, and is not limited to integers. A value of 1 equals a
# point in font size.
resize = 0
font_size = font.get_size() + (resize * 1024)
width = gtk.gdk.screen_width()
mult = width * .00076
if os.path.exists("/etc/olpc-release") or
os.path.exists("/etc/power/olpc-pm"):
mult = width * .00082
elif os.path.exists("/etc/fedora-release"):
release = open("/etc/fedora-release").read()
if release.find("SoaS release 1 ") != -1:
mult = width * .00132
elif release.find("SoaS release 2 ") != -1:
mult = width * .00085
elif release.find("Fedora release ") != -1:
mult = width * .00119
font.set_size(int(font_size * mult))
widget.modify_font(font)
Art Hunkins
----- Original Message -----
From: "Gary Martin" <garycmar...@googlemail.com>
To: "Yamandu Ploskonka" <yamap...@gmail.com>
Cc: "IAEP SugarLabs" <IAEP@lists.sugarlabs.org>; "Sugar-dev Devel"
<sugar-de...@lists.sugarlabs.org>
Sent: Monday, May 02, 2011 1:13 PM
Subject: Re: [Sugar-devel] [IAEP] Olidata computers in Uruguay
On 2 May 2011, at 16:47, Yamandu Ploskonka wrote:
the Sur list is following this thread in detail, I just wanted to share a
FYI for developers.
30,000 Olidata laptops have been purchased by Ceibal at $130 apiece and
teachers are being "upgraded" to those, trading in their XOs.
Thanks for raising this issue! I've cc:ed the sugar-devel list as it's the
first I've read of this.
One of the most noticeable source for incompatibilities seems to be screen
definition, 800x600 in the Olidata, and thus several Activities are
cropped,
Ouch, quite a few Activity toolbars will likely overflow at 800x600
(overflow widgets land in a drop down menu in the far right of the toolbar
that shows the text from the tool button hint only). The XO is a 1200x900
screen, about a year or two back there was general consensus that we should
try and make sure Activities worked well down too 1024x768 as that was
common in emulated environments and regular laptops/desktops.
These 800x600 display machines will want to make sure they are running Sugar
using an environmental variable of SUGAR_SCALING=72, this will shrink the
UI scale down to fit the lower screen resolution. SUGAR_SCALING currently
only has an effect at either 72 (works well for 800x600 and 1024x768) or 100
(for 1200x900 or larger).
There will likely still be activities drawing their canvas with hard coded
expectations of screen size, but hopefully these will be reasonably few in
number by now. Please file a ticket if you find any (bugs.sugarlabs.org), or
feel free to email me and I'll try and chase them up.
One last additional issue you may find is with the dpi of text. Some
activities may seem to display overly large or small text fonts. This issue
is quite a black art to solve well, but still worth keeping an eye out for
and reporting back to the Activity developer.
Regards,
--Gary
maybe something to be aware of. Etoys appears to have been fixed already.
On 05/02/2011 02:15 AM, nanon...@mediagala.com wrote:
El pLan Ceibal en Uruguay está entregando a las Aaestras de Primaria las
Olidata "Jump PC", con disco flash de 8 GB
http://www.olidata.cl/index.php/netbook_web/show/id/10
Las "olidata" se las dan a las MAestras a cambio de sus XO. Me parece una
decisión errada, ya que la intención del PLan ceibal es darles a las
Maestras una maquina más potente y al día (con respecto a las XO 1 de los
niños, de hace dos o tres años), pero eso me parece un gran disparate, no
puede ser que la MAestra no pueda hacer pruebas sobre las XO de los
Niños.
La MAestra tiene que entregar su XO 1.0 al Plan Ceibal (que le fue
entregada hace un par de años) y el Plan ceibal se la cambia por una
Olidata. El Año pasado fueron compradas 30.000 olidata , según la pagina
web institucional del Plan Ceibal.
-------------------------------
Una cosa que no me parece correcta es que la laptop de maestra sea
diferente ala XO: tiene más capacidad ara el Diario, eso es bueno(8 Gb
contra 1 Gb), pero la pantalla es diferente, el hardware es distinto, y
el sugar no funciona en forma identica, por lo tanto cualquier cosa que
la Maestra use en su Laptop no podrá ser repetido por los alumnos de la
misma forma.
NO tiene sentido querer darle una maquina más potente a las MAestras, ya
que si por ejemplo la Maestra hace una actividad Etoys en su casa ,
usando sonidos, animación , etc etc, luego va a la clase y le dice a los
niños que lo repitan, pero resulta que lo mismo en las Xo tal vez va mas
lento, o no funciona igual, o se ve solo en partes....
Si se le quiere dar una maquina más potente a las Maestras, deberían
dejar que tengan las dos: la "potente" y la XO normal de los Niños. En
este momento se les cambia la XO por la Olidata.
NOTA: cuando digo "potente" (hablando de la Olidata ), es en tono jocoso,
espero que se entienda.
La Olidata Tiene la pantalla un poco más chica que la XO , de 7" y
800x400, en cambio la XO es de 7.5" y de 1200x900
Debe ser por esa razón que ciertas actividades se ven cortadas, al igual
que sucede con los emuladores.
Estaría bueno que los programadores hicieran como ya hicieron con ETOYS,
que lo modificaron especialmente por estos problemas, y ahora los iconos
y menúes se adaptan a la pantalla y no se pierde ninguno.
PEro en muchas actividades no sucede eso.
-------------------
La verificación más simple sobre el tamaño de pantalla es entrar a
"TurtleART", si la Tortuga no está inicialmente en el medio de la
pantalla significa que a la pantalla le falta algo para visualizar.
en el write, por ejemplo, los menúes de arriba a la derecha se pierden,
creo que es el botón para cambiar tipo de letra. No sé si han solucionado
ese problema del Write, pero en las primeras versiones teníamos ese
problema.
---------------------
Paolo Benini
MOntevideo
_______________________________________________
Lista olpc-Sur
olpc-...@lists.laptop.org
http://lists.laptop.org/listinfo/olpc-sur
_______________________________________________
IAEP -- It's An Education Project (not a laptop project!)
IAEP@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/iaep
_______________________________________________
Sugar-devel mailing list
sugar-de...@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel
_______________________________________________
IAEP -- It's An Education Project (not a laptop project!)
IAEP@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/iaep