mikehamil10 Posted September 17, 2013 Share Posted September 17, 2013 Hi! First off great job on Phaser so far. It's shaping-up to be a great HTML5 engine.I am, however, having an issue with rendering text. It just doesn't seem to work Looking through the files in the WIP folder I found some text examples. When I run them, I get the following error:Uncaught TypeError: Cannot read property 'size' of undefined inBitmapText.js:82 That bit of code seems to be trying to read a property called data.size, which is obviously null. I don't know much about Pixi.js, but on line 75 where the data object is created, I think something is going awry. I'm using Phaser.CANVAS for my rendering mode, and the name of the font I'm passing-in is just "Arial". I should also note that I get the exact same error when I try to create text in my own projects, so something's going on there. Any help getting custom text to render would be greatly appreciated, and keep up the good work! Link to comment Share on other sites More sharing options...
rich Posted September 17, 2013 Share Posted September 17, 2013 Hmm, good find! You're right this is definitely broken. I'm not sure off the top of my head why (it obviously used to work), but I'll fix it today and it will be part of 1.0.3. Link to comment Share on other sites More sharing options...
mikehamil10 Posted September 17, 2013 Author Share Posted September 17, 2013 Updating to 1.0.3 fixed my issue. Thanks Rich! Link to comment Share on other sites More sharing options...
Recommended Posts