user471 Posted June 16, 2014 Share Posted June 16, 2014 This code var text = game.add.text(10, 10, "12345", style) var graphics = game.add.graphics(0,0) graphics.lineStyle(1, white,1) graphics.drawRect(text.x, text.y, text.width, text.height) create this Is there any way I can fix it? Firefox 29. Link to comment Share on other sites More sharing options...
user471 Posted June 16, 2014 Author Share Posted June 16, 2014 Any ideas? Link to comment Share on other sites More sharing options...
lewster32 Posted June 16, 2014 Share Posted June 16, 2014 This may be down to default style settings. Try something like normalize.css in your HTML, see if that fixes it. It may not however, as the creation of the text may be done outside of the scope of the stylesheet's influence. If this is the case, I'm afraid there may be no alternative other than browser sniffing and adjusting for any discrepancies, or using BitmapText which should look the same in all browsers as it does not rely on any browser-specific font rendering functionality. Link to comment Share on other sites More sharing options...
kroop Posted September 29, 2014 Share Posted September 29, 2014 Did anyone find any sleek solution for this? I'm using google webfonts, tested on IE, Opera, Chrome (desktop and mobile), Safari (desktop and mobile) and it's reproducible only with Firefox. Link to comment Share on other sites More sharing options...
Recommended Posts