Merge pull request #279 from restorer/patch-1

Fix font preloading for Safari on OsX
This commit is contained in:
Joshua Granick
2014-12-30 17:53:38 -08:00

View File

@@ -148,7 +148,7 @@ class Preloader #if flash extends Sprite #end {
Browser.document.body.appendChild (node);
var width = node.offsetWidth;
style.fontFamily = "'" + font + "'";
style.fontFamily = "'" + font + "', sans-serif";
var interval:Null<Int> = null;
var found = false;
@@ -307,4 +307,4 @@ class Preloader #if flash extends Sprite #end {
#end
}
}