Author Topic: Word wrapping incorrect (maybe due to special characters?)  (Read 1981 times)

Pasty

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 8
    • View Profile
Word wrapping incorrect (maybe due to special characters?)
« 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

I see the same issue under fairly uncommon circumstances, and I'm not sure which one is specifically to blame:
  • Dynamic text localized using NGUI functionality
  • Includes Spanish special characters (ó or á are present in the same line in documented occurrences of the issue)
  • Issue only occurs on iOS devices (Unity Editor and Android don't seem to have the issue)

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.
« Last Edit: December 29, 2014, 03:22:13 PM by Pasty »

Pasty

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: Word wrapping incorrect (maybe due to special characters?)
« Reply #1 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:

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Word wrapping incorrect (maybe due to special characters?)
« Reply #2 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?

Pasty

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: Word wrapping incorrect (maybe due to special characters?)
« Reply #3 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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Word wrapping incorrect (maybe due to special characters?)
« Reply #4 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.