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

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -