dthrasher90 Posted March 10, 2017 Share Posted March 10, 2017 <head> <meta charset="UTF-8" /> <title>hello phaser!</title> <script src="phaser.min.js"></script> <script src="huddle.js"> </script> <script src="PressStart2P.tff"> </script> <link href="https://fonts.googleapis.com/css?family=Press+Start+2P" rel="stylesheet"> </head> /// var score = 0; scoreTextHome = game.add.text(0.1, 0, 'Home: 0', { font: '20px Press Start 2P', fill: '#ffffff' }); scoreTextAway = game.add.text(0.1, 21, 'Away: 0', { font: '20px Press Start 2P', fill: '#ffffff' }); Time = game.add.text(310, 0, 'Time: 00:00', {font: '20px Press Start 2P', fill: '#ffffff' }); DownLog = game.add.text(650, 0, '1 & 10 ',{font: '20px Press Start 2p', fill: '#ffffff' }); Link to comment Share on other sites More sharing options...
dthrasher90 Posted March 10, 2017 Author Share Posted March 10, 2017 im trying to load this cdn with custom fonts, however, it doesnt always work 100% of the time. It works, so i know its coded correctly. Is there anything I can do to ensure its loaded all the time? I added the source file also. Link to comment Share on other sites More sharing options...
RubbleGames Posted March 10, 2017 Share Posted March 10, 2017 Just a guess but you could try changing the load order so your font link is before your js files. Link to comment Share on other sites More sharing options...
dthrasher90 Posted March 10, 2017 Author Share Posted March 10, 2017 Got it fixed, i had a bad cdn Link to comment Share on other sites More sharing options...
Recommended Posts