<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Aleksey and Gary,<br>
<br>
I just yesterday tried booting up my XO using the very latest beta of
SoaS.&nbsp; The font looked OK (reasonably close to what I was seeing in my
test environment).&nbsp; So I guess in .84 I won't have a problem.<br>
<br>
I tried adding some code to Read Etexts to check for the SUGAR_SCALING
environment variable and ran it on sugar-emulator on Fedora 10 and also
on my XO running .82.&nbsp; Neither one had the environment variable.&nbsp; I
didn't try with SoaS.&nbsp; So that explains why style.zoom() had no
effect.&nbsp; I'll probably just get rid of it in the next version of the
Activity.<br>
<br>
The current version of Read Etexts is usable on the XO running .82, XO
running .84, and sugar-emulator on Fedora 10, even though the font size
is different on all three.&nbsp; The View tab allows the user to adjust the
font size to his liking, so it is tolerable to have the font start up
at three different sizes on the three platforms.&nbsp; For most things I do
use the default font size, so this isn't a show stopper.&nbsp; I'm going to
"Declare victory and quit." on this one.<br>
<br>
As for the code Aleksey wrote (linked below), since there is no
environment variable for the XO to use in style.zoom() I'm pretty sure
his code would have no effect.&nbsp; Plus style.zoom() already used a
default scaling factor of 1.0 if there was no environment variable
SUGAR_SCALING so it already should have worked in .82 and .84.&nbsp; From my
experience it didn't seem to hurt working in .84 at all.<br>
<br>
Thanks for all the help, though.<br>
<br>
James Simmons<br>
<br>
<br>
Aleksey Lim wrote:
<blockquote cite="mid:20090606084609.GC32258@antilopa-gnu" type="cite">
  <pre wrap="">On Fri, Jun 05, 2009 at 05:30:13PM +0200, Tomeu Vizoso wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">On Fri, Jun 5, 2009 at 17:11, James Simmons<a class="moz-txt-link-rfc2396E" href="mailto:jim.simmons@walgreens.com">&lt;jim.simmons@walgreens.com&gt;</a> wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">Tomeu,

The thing is, in the code below I *am* using style.zoom.&nbsp; It seems to have
no effect at all.
      </pre>
    </blockquote>
    <pre wrap="">What I would have supposed that would work is using in 0.84 a fixed
font size of 10 and on the XO style.zoom(X). I didn't wanted to imply
that X could be 10, I think we were using a smaller font size in the
Sugar UI.

Maybe Aleksey could add a zoom() function to sugar.port that on 0.82
would do some scaling based on the screen resolution and on 0.84 would
return the value unchanged?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
done,
<a class="moz-txt-link-freetext" href="http://people.sugarlabs.org/~alsroot/sugar-port/port.style-module.html">http://people.sugarlabs.org/~alsroot/sugar-port/port.style-module.html</a>

  </pre>
</blockquote>
<br>
</body>
</html>