[Laszlo-checkins] r13581 - openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9

hqm@openlaszlo.org hqm at openlaszlo.org
Wed Apr 1 16:05:55 PDT 2009


Author: hqm
Date: 2009-04-01 16:05:53 -0700 (Wed, 01 Apr 2009)
New Revision: 13581

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzFontManager.as
Log:
Change 20090401-hqm-L by hqm at badtzmaru.home on 2009-04-01 19:01:21 EDT
    in /Users/hqm/openlaszlo/trunk/WEB-INF/lps/lfc
    for http://svn.openlaszlo.org/openlaszlo/trunk/WEB-INF/lps/lfc

Summary:  fix swf9 embedded font declarations

New Features:

Bugs Fixed: LPP-8011
 
Technical Reviewer: ptw
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:

+ change type of var in lookup from LzFont to Object
    

Tests:

embedded font example runs without error

<canvas>
  <font src="uni-5-plain-expanded-s.ttf" name="myfont"/>
  <text font="myfont">myfont is oh-so good!</text>
</canvas>




Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzFontManager.as
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzFontManager.as	2009-04-01 23:02:36 UTC (rev 13580)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzFontManager.as	2009-04-01 23:05:53 UTC (rev 13581)
@@ -75,14 +75,14 @@
         if (fns.length > 0) {
             for (var i:int = 0; i < fns.length; i++) {
                 fontname = fns[i];
-                var tfn:LzFont = LzFontManager.fonts[ fontname ];
+                var tfn:Object = LzFontManager.fonts[ fontname ];
                 if (tfn) {
                     return tfn[ style ];
                 }
             }
             return null;
         } else {
-            var tfn:LzFont = LzFontManager.fonts[ fontname ];
+            var tfn:Object = LzFontManager.fonts[ fontname ];
             if (tfn) {
                 return tfn[ style ];
             } else {



More information about the Laszlo-checkins mailing list