I've checked in my cssfonts and fixed this. Our sprites really need some rework, because they all depend on knowing their font attributes at construct time, but this is a waste of effort when you have constraint or styled any of these attributes as they will be overridden once the constraints are installed.
For now, I have had to leave the old-style cascading of fonts in place to ensure that text elements always have a default font at construct time, but I have filed an improvement request to fix this. http://jira.openlaszlo.org/jira/browse/LPP-9739 On 2011-02-06, at 19:51, Henry Minsky wrote: > When I run this test case in IE8/DHTML, I get an error from the browser that > > "Could not get the fontWeight property. Invalid argument" and it points to > line 134 in the cssfonts mixin: > > Then later it complains that this.css_font is null (because it errored out > in that construct method for some reason) > > Anyone have any idea what the problem is here? > > <canvas width="100%" height="80%" debug="true"> > <include href="/mixins/cssfonts.lzx"/> > > <text valign="middle" styleclass="elapsedtext" bgcolor="null" > name="elapsed" text="00:00" with="cssfonts"/> > > </canvas> > > > > > -- > Henry Minsky > Software Architect > [email protected]
