-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Truncation #5
Comments
if the text is added without the typewriter does the "bar" fit? Because all typewriter does is to make the text invisible (alpha = 0) and then make it appear one by one. So it is not handling the truncation or the change of line, this is all bitmap text properties when making the text. |
I tried the same thing on bitmaptext object with maxwidth set to what it was being set to with the typewriter, and you're right, it just disappears. Maybe it's a phaser bug. This is a custom font, also. |
I will ask around on the Phaser slack about this. If there is something that I can do I will fix it. |
Does this still occur on the latest Phaser CE version? |
Sometimes the last word of a message is truncated if that word would have just barely fit within the edge of the message box. If "You ate the chocolate bar" is just wide enough so that "bar" would end the current line, it becomes "You ate the chocolate", without "bar" even being moved to the next line.
The text was updated successfully, but these errors were encountered: