Insi Posted June 17, 2016 Share Posted June 17, 2016 Hi. I'm try to use BitmapText with pixi v.3.0.9 to display multiline text and I have some problems here. Just an example: When I use just \n symbols to word wrap it works correctly: _bitmapFontText = new PIXI.extras.BitmapText("12\n 34\n 56\n 78\n 90\n 21\n 43\n 65\n 87\n 09", { font: '35px Desyrel', align: 'right' }); _bitmapFontText.updateText(); When I use just maxWidth it works correctly too: _bitmapFontText = new PIXI.extras.BitmapText("12 34 56 78 90 21 43 65 87 09", { font: '35px Desyrel', align: 'right' }); _bitmapFontText.maxWidth = 30; _bitmapFontText.updateText(); But when I've mix them. _bitmapFontText = new PIXI.extras.BitmapText("12\n 34\n 56\n 78\n 90\n 21\n 43\n 65\n 87\n 09", { font: '35px Desyrel', align: 'right' }); _bitmapFontText.maxWidth = 30; _bitmapFontText.updateText(); The result will be so strange. Some of chars become duplicated (screenshot attached). Mixed variant it's what I really need to have, because text which I'll set in real application could contains any number of \n symbols, but it should be placed just in specific area (which could be limited with maxWidth) Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted June 17, 2016 Share Posted June 17, 2016 Is the same true for v4? Quote Link to comment Share on other sites More sharing options...
Insi Posted June 17, 2016 Author Share Posted June 17, 2016 If someone cuild quick test it on v4 I'll be happy. I need to set up project for it (can do it on monday) Quote Link to comment Share on other sites More sharing options...
Insi Posted June 23, 2016 Author Share Posted June 23, 2016 Reproduced on v4 the same way Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted June 23, 2016 Share Posted June 23, 2016 Ok, then if you dont mind it, please add it to https://github.com/pixijs/pixi.js/issues . If not, I will add it there myself Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.