Jump to content

Fine control of wordWrap in Text


Etienne
 Share

Recommended Posts

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

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...