Author Topic: UILabel not pixel perfect on iPad3  (Read 3828 times)

zeroc

  • Guest
UILabel not pixel perfect on iPad3
« on: July 15, 2012, 10:57:08 PM »
Hi Aren,

My UILabel is not displaying correctly on iPad3.
The pics in the attachments are the same label widget.
It displays well with multiple lines, but not with only one line.
The font size is 30, exported with GlyphDesigner.

Any idea I can fix this?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UILabel not pixel perfect on iPad3
« Reply #1 on: July 15, 2012, 11:06:49 PM »
Does this only happen on the iPad3? Is it fine in the editor?

zeroc

  • Guest
Re: UILabel not pixel perfect on iPad3
« Reply #2 on: July 15, 2012, 11:08:59 PM »
Yes, it's fine in the editor

zeroc

  • Guest
Re: UILabel not pixel perfect on iPad3
« Reply #3 on: July 16, 2012, 12:22:56 AM »
After trying different combinations, I just found out the pattern:
The number of lines doesn't matter.
However, the characters are NOT pixel perfect if we don't have enough different characters in the same panel.

Could you look into this issue?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UILabel not pixel perfect on iPad3
« Reply #4 on: July 16, 2012, 10:57:10 AM »
I don't see why this would be happening. The code for printing characters prints them an entire letter at a time, and there is nothing that would squish them at all. The entire label may get squished -- but never individual characters. Something else is going on there. What kind of font are you using? Is it a packed font? Is your panel drawing the font static? (on the panel, not on the game object)

zeroc

  • Guest
Re: UILabel not pixel perfect on iPad3
« Reply #5 on: July 16, 2012, 10:53:30 PM »
I'm using regular fonts in a Panel with static widgets checked.
However, I fixed the issue by adding a hidden label with text a-z in the same panel.
Problem solved, in an ugly way, lol.

zeroc

  • Guest
Re: UILabel not pixel perfect on iPad3
« Reply #6 on: September 02, 2012, 10:16:56 PM »
It's still a problem on iPad3.
When I add the fix label into the panels. Texts don't display any more.
Could you take a look into the issue?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UILabel not pixel perfect on iPad3
« Reply #7 on: September 03, 2012, 07:16:31 AM »
I've never seen or heard of this issue from anyone except from you, so I wouldn't even know where to begin looking. What version of NGUI and Unity are you using?