Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Pasty on December 29, 2014, 02:35:41 PM

Title: Word wrapping incorrect (maybe due to special characters?)
Post by: Pasty on December 29, 2014, 02:35:41 PM
I have encountered an issue similar to the one found here:
Word wrapping in UILabel breaks at last character (http://www.tasharen.com/forum/index.php?topic=10004.0)

I see the same issue under fairly uncommon circumstances, and I'm not sure which one is specifically to blame:

Also of note is that we have only seen the issue occur with words that end with an "n". Probably a coincidence. The font we use is attached.

Update:
Another thread was just brought to my attention:
http://www.tasharen.com/forum/index.php?topic=6313.15
I am also exporting from google docs! I'll try some stuff relating to the space character as listed.
Title: Re: Word wrapping incorrect (maybe due to special characters?)
Post by: Pasty on December 29, 2014, 03:21:28 PM
Doesn't seem like I had any of those non-breaking space characters in the my exported text file. To be sure, I did an export, replace all, and rebuild to be sure. Issue persists.

Image attached:
Title: Re: Word wrapping incorrect (maybe due to special characters?)
Post by: ArenMook on December 30, 2014, 02:37:51 PM
What version of NGUI, how do you assign the label's text, and what are the label's wrapping options?
Title: Re: Word wrapping incorrect (maybe due to special characters?)
Post by: Pasty on December 30, 2014, 03:52:03 PM
NGUI 3.7.1 - I haven't updated because I have functionality was added on to NGUI that I haven't had a chance to port over and the posted change logs don't seem to relate to this issue
Label's text is assigned via UILocalize, using a csv file
Label overflow is set to ResizeHeight
Title: Re: Word wrapping incorrect (maybe due to special characters?)
Post by: ArenMook on December 31, 2014, 03:43:46 PM
You might want to update and see if it's already resolved first. 371 is quite old now.