Author Topic: Intermittent Text Wrap Bug on UILabel  (Read 2984 times)

GUIJammer

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Intermittent Text Wrap Bug on UILabel
« on: October 06, 2015, 05:16:57 AM »
So, using NGUI 3.9.1, Unity 4.6.2f1, we have a strange text wrapping bug on UILabel that seems to be intermittent. At times, words will get cut and isolated characters will appear on the line below, as per this example.



We can't reproduce this EVERY time; sometimes it is fine, sometimes it isn't. We've tried a number of 'fixes' (specifying max lines, enabling float spacing) to no avail, and I can only assume that sometimes a calculation is made correctly, and other times it isn't?

I've seen other posts regarding this, but nothing that truly seems to have a solution. I wonder whether it is typeface specific (some will, some won't) but if anyone could shed any light on the matter, that would be ace. :)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Intermittent Text Wrap Bug on UILabel
« Reply #1 on: October 07, 2015, 08:25:33 PM »
I've heard of this, but am yet to get a repro case to examine and I've never encountered it myself...

GUIJammer

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Intermittent Text Wrap Bug on UILabel
« Reply #2 on: October 08, 2015, 02:41:14 AM »
Setting overflow to 'Shrink Content' and enabling float spacing on the label seems to reduce the odds of it happening, but doesn't eliminate it. Will keep this thread updated with any other solutions.

nilton_felicio

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
    • View Profile
Re: Intermittent Text Wrap Bug on UILabel
« Reply #3 on: October 23, 2015, 06:41:09 PM »
I'm having the same problem. Opening a forum post. I am losing the head with this.


http://www.tasharen.com/forum/index.php?topic=13718.0

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Intermittent Text Wrap Bug on UILabel
« Reply #4 on: October 24, 2015, 04:45:12 AM »
You have a different issue.

nilton_felicio

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
    • View Profile
Re: Intermittent Text Wrap Bug on UILabel
« Reply #5 on: October 24, 2015, 10:16:07 AM »
Hi ArenMook.
The problem is very similar it breaks the words counting letters.
If you look at my post and the third photo you will see that he is breaking the words counting letters.
In GUIJamer the problem, he does not want that line which has the "e".
But if you notice, you'll see that the word "be", could not have been separated or she would be on the top line or she would be on the second line with the word "be" a complete and not separated.