mauticom Posted September 20, 2014 Share Posted September 20, 2014 Hi guys, I have a strange issue with 2.0.7 and still also in 2.1.1. In Firefox the text gets cut off at the top, while Chrome, Safari and even IE don't have any issues with it. I have attached 2 screenshots one from firefox and one from chrome for comparison. The code is straight forward: //txt Score txtScore = game.add.text(15,game.world.height-50,0); txtScore.font = 'Oswald'; txtScore.fontSize = 30; txtScore.fill = "#FFF"; txtScore.align = "right"; txtScore.fixedToCamera = true;You can even check out the game at https://yolotrain.oebb.at (facebook login required, online is still Phaser 2.0.7) Do you have any clue why this is happening? As far as I can see it has something to do with the font, because when I switch to e.g. Verdana everything is fine. It seems the font is aktually larger than 30!?. However any idea how to fix that? Thank you and regards, Clemens Link to comment Share on other sites More sharing options...
Anderberg Posted October 1, 2014 Share Posted October 1, 2014 I have the exact same issue using a Google webfont. It is really annoying, but I haven't found a solution yet Link to comment Share on other sites More sharing options...
Anderberg Posted October 1, 2014 Share Posted October 1, 2014 I can see that Pixi has an issue with this that one might want to monitor: https://github.com/GoodBoyDigital/pixi.js/issues/672 mauticom 1 Link to comment Share on other sites More sharing options...
Recommended Posts