2D Toolkit Forum
2D Toolkit => Support => Topic started by: sfbaystudios on March 04, 2013, 07:57:40 pm
-
Hello!
The word wrap is an amazing feature, of course. However from time to time there is a period or another punctuation that happens at the end of a word that happens to be at the end of the line, and the period, without the word, is moved to the next line, so the last line in the block consists of a single period.
Is there a way to keep this from happening?
Thanks!!
-
tk2dTextMesh.cs has a switch statement that says "else if (idx == ' ')" among other characters, like periods, semi-colons, and other characters.
Remove all the characters you don't want the "break to next line" code to soft-wrap there (make sure that the space character IS still there).
-
Thank you!
-
Sometimes the space is sent to the next line.
Since obviously we can't remove the space from the switch statment is there another way to avoid this situation?
-
No, but good point. I'll fix this for the next release.