Dan335 Posted July 13, 2016 Share Posted July 13, 2016 Some text appears too wide and some not wide enough. I'm using 3.0.11. Is setting the width needed somehow? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted July 13, 2016 Share Posted July 13, 2016 Hello, Dan! Can you try the same with latest sources of pixi-v4? There was a bug like that we fix. If you cant build from sources, you can take mine: https://dl.dropboxusercontent.com/u/46636530/pixijs/pixi.js Quote Link to comment Share on other sites More sharing options...
Dan335 Posted July 14, 2016 Author Share Posted July 14, 2016 Hey, thanks. I get this error when using 4. Error: frame does not fit inside the base Texture dimensions Because I'm using https://github.com/gamevy/pixi-packer-parser Trying to figure it out. Quote Link to comment Share on other sites More sharing options...
Dan335 Posted July 14, 2016 Author Share Posted July 14, 2016 Got pixi-packer-parser working with 4. Still having the same problem with the text. Quote Link to comment Share on other sites More sharing options...
Dan335 Posted July 30, 2016 Author Share Posted July 30, 2016 Still can't figure this out. I'm using the latest dev branch. Some text is too wide and some not wide enough. I tried creating a simple reproduction but can't get it to happen. Quote Link to comment Share on other sites More sharing options...
fire7side Posted July 31, 2016 Share Posted July 31, 2016 Someone had a problem kind of similar to this a while back and had to call updateText. Not sure if it's the same problem or not: Quote Link to comment Share on other sites More sharing options...
Dan335 Posted July 31, 2016 Author Share Posted July 31, 2016 I tried calling updateText but it didn't help. I found a way to make it work. I get the width and height of the text http://stackoverflow.com/questions/118241/calculate-text-width-with-javascript then set the width to the width I found and height to height * 2. I tried using skew. It does skew it but the skew is different depending on the width of the text. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted July 31, 2016 Share Posted July 31, 2016 I still dont understand what are your problems. 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.