Etienne Posted April 19, 2017 Share Posted April 19, 2017 Hello, I have a text in Phaser with wordWrap set to true. It's work well, but I want to prevent the text to wrap at some point ( on some space ). By example, 1 000 can be wrapped like 1 000 . I don't want that ! I want to prevent wrapping for space in numbers ( any number ). In html I can just put 1 000 to prevent wrapping between the 1 and the zero. There is a simple way in Phaser to do that? Thanks in advance! Etienne Link to comment Share on other sites More sharing options...
MikeW Posted April 19, 2017 Share Posted April 19, 2017 I would imagine easy ways use fixed size font. I personally like Consolas. And do math. You can also create the object without word wrap do it manually - checking length at points you parse the string at Link to comment Share on other sites More sharing options...
Etienne Posted April 19, 2017 Author Share Posted April 19, 2017 Found a solution, use '\xa0' in place of space or Thanks! Etienne Link to comment Share on other sites More sharing options...
Recommended Posts