[Laszlo-dev] Fwd: setFontName setter in LzText, who is calling it ??

Henry Minsky henry.minsky at gmail.com
Sun Jul 3 12:51:27 PDT 2005


forwarding to the wider developers list, in case people are interested..

---------- Forwarded message ----------
From: Henry Minsky <henry.minsky at gmail.com>
Date: Jul 3, 2005 3:50 PM
Subject: setFontName setter in LzText, who is calling it ??



I am experimenting with adding explicit font names to text to try to
speed up the instantiation, so that searchParents() doesn't need to be
called, and I was surprised to find this slowed things down.

I then noticed that if I added an explicit "font" tag

   new LzText( textholder ,
                            { height : 20,
                            font: 'Verdana',
                              width: 200} );

Then the "setFontName" method on LzText gets called.
What I cannot figure out is who is calling it?

There is this definition in LzText6.as:

LzText.prototype.setters.font = "setFontName";


But who is responsible for actually calling this? Something in the
basic View constructor machinery?





--
Henry Minsky
Software Architect
hminsky at laszlosystems.com


-- 
Henry Minsky
Software Architect
hminsky at laszlosystems.com



More information about the Laszlo-dev mailing list