Skip to content
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

Open
WVI opened this issue Jun 20, 2016 · 4 comments
Open

Truncation #5

WVI opened this issue Jun 20, 2016 · 4 comments

Comments

@WVI
Copy link
Contributor

WVI commented Jun 20, 2016

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.

@netgfx
Copy link
Owner

netgfx commented Jun 21, 2016

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.
Also does that happen on a custom font?

@WVI
Copy link
Contributor Author

WVI commented Jul 1, 2016

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.

@netgfx
Copy link
Owner

netgfx commented Jul 1, 2016

I will ask around on the Phaser slack about this. If there is something that I can do I will fix it.

@netgfx
Copy link
Owner

netgfx commented Mar 7, 2018

Does this still occur on the latest Phaser CE version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants