Author Topic: Strange Problem with UILabel using References  (Read 4469 times)

Chris

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Strange Problem with UILabel using References
« on: September 13, 2013, 07:51:43 AM »
Hi everyone,

we currently use ngui for our new game. I implemented the use of References on the UILabels for switching to a high-res-font on a retina device. The Problem is that especially with the higher Resolutions the UILabel seem to brake. After a few switches between menus the Text is not drawn correctly anymore and it seems like a part of the font-atlas is shown (See the Attachment). This happens a lot more on devices but also in the unity editor.

When i switch Shrink to Fit on and off manually, or change the text of the UILabel the text is drawn correctly again. I don't know what the Reason for this behaviour is, but it seems to be kind of an update-problem.

Maybe anyone has encountered similar problems or even has a solution.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Strange Problem with UILabel using References
« Reply #1 on: September 13, 2013, 08:57:40 AM »
What version are you using?

Chris

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: Strange Problem with UILabel using References
« Reply #2 on: September 13, 2013, 09:52:17 AM »
We are using version 2.6.3

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Strange Problem with UILabel using References
« Reply #3 on: September 13, 2013, 09:52:41 AM »
Before posting bug reports please update to the latest.

Chris

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: Strange Problem with UILabel using References
« Reply #4 on: September 17, 2013, 04:02:36 AM »
I updated to 2.7 now and the text-problem is not occuring anymore, but a lot of other stuff is kind of broken (scale to fit). Do you have any idea what you changed so that the font problem is fixed. We want to use the newest version but we dont have the time right now to check for all the other possible problems, so it would be helpful if we can solve the font problem with 2.6.3 (for the moment).

Maybe you have an idea. Thanks.

Winter_is_coming

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: Strange Problem with UILabel using References
« Reply #5 on: September 17, 2013, 08:29:21 AM »
Was this specifically a fix which went in to 2.7? I have also had a this issue for a while now and various other fixes have been suggested.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Strange Problem with UILabel using References
« Reply #6 on: September 17, 2013, 02:47:20 PM »
@Chris: There are several "scale to fit" threads here now. TLDR version: set the max height of labels, and change max lines to 0.

@Winter: it's just one of the changes, yes.