javascript - Createjs custom font not updating on load, updating after a few seconds -


i trying create html5 game using createjs, custom font not showing initially, after few seconds. code auto genrated animate cc, when publish javascript easeljs : this.txt = new cjs.text("coin 10", "30px 'calibri'", "#ffffff");. have added font in stylesheet, included stylesheet in html, , tried load font using <link href="../fonts/calibri.ttf" rel="stylesheet" type="text/css"/>. when game loaded, default font displayed, after few seconds correct font shown. checked in network panel of browser, font downloaded before game assets, before initializing stage.


Comments

Popular posts from this blog

python - Error: Unresolved reference 'selenium' What is the reason? -

How do I compare strings in Java? -

ios - Pass NSDictionary from Javascript to Objective-c in JavascriptCore -