DesertEagle Posted February 9, 2014 Share Posted February 9, 2014 Hello,I created a little routine that shows the bounding boxes of a circle and a bit of text I've rendered inside it. Whenever I turn "wordWrap" on, I get an extra line on the text. Is this behavior by design? If so, could we get a way of detecting how large the blank line is so we can recenter vertically, as needed? I can kind of fake it by remembering the original line height, but that doesn't account for spacing. Cheers,Travis Quote Link to comment Share on other sites More sharing options...
rich Posted February 9, 2014 Share Posted February 9, 2014 I've submitted a fix for this, but in the meantime you can stop it happening by editing the wordWrap function in Text.js and put this bit at the end: if (i < lines.length-1) { result += '\n'; } Quote Link to comment Share on other sites More sharing options...
DesertEagle Posted February 10, 2014 Author Share Posted February 10, 2014 Thanks Rich, I put in your suggested fix and it did indeed solve the issue. Quote Link to comment Share on other sites More sharing options...
rich Posted February 10, 2014 Share Posted February 10, 2014 Mat has merged my fix into dev, so hopefully will hit the 1.5 master in a day or two. 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.