2003/11/03 07:36:40
[org.ibex.core.git] / src / org / xwt / builtin / splash.xwt
index 6294636..a99bb00 100644 (file)
@@ -11,7 +11,7 @@
 
         xwt.thread = function() {
 //            $text.font = xwt.fonts.vera["Vera.ttf"];
-            $text.font = xwt.uncab(xwt.load("http://master.dist.xwt.org/msfonts/arial32.exe"))["Arial.TTF"];
+            $text.font = xwt.cache(xwt.uncab(xwt.load("http://master.dist.xwt.org/msfonts/arial32.exe"))["Arial.TTF"]);
             $text.fontsize = 18;
             $text.text = "downloading...";
             fill = xwt.org.xwt.builtin["splash.png"];
@@ -28,6 +28,7 @@
             var new_xwt = xwt.clone(new_rr);
 
             xwt.thread = function() {
+xwt.sleep(1000); // let the fonts get pulled in
 for(var i=0; 100>i; i++) {
 progress(i, 100);
 xwt.yield();