[Textmesh Pro] I want to avoid line breaking in words with hyphens.

I am using Textmesh pro in Unity, and word wrapping is breaking the word WI-FI in two lines, like this:

WI-
FI

How force Textmesh pro to treat it like a single word, so it wont be split in two lines?

1 Like

Use a non-breaking hyphen which is Unicode \u2011.

The normal hyphen is defined as a line breaking characters whereas the non-breaking hyphen is not.

1 Like