Author Topic: UILabel artifact on high resolution screen  (Read 5973 times)

zaborius

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 2
    • View Profile
UILabel artifact on high resolution screen
« on: March 18, 2015, 11:47:23 AM »
Hello there! Our team was faced with the problem of rendering UILabel on devices with high resolution, such as IPad Retina. Issue occurs when game loading resources synchronously (1-5 seconds). In our case we use Resources.Load(). We are using dynamic font with NGUI 3.0.9f6.

Regular label:
https://dl.dropboxusercontent.com/u/46660587/UILabelArtifact/Regular.PNG

Label during our loading process with screen fade effect (simple black semi transparent UITexture on top):
https://dl.dropboxusercontent.com/u/46660587/UILabelArtifact/LoadingResources.PNG

Would be grateful for any advice. Thanks!

r.pedra

  • Full Member
  • ***
  • Thank You
  • -Given: 7
  • -Receive: 20
  • Posts: 131
    • View Profile
Re: UILabel artifact on high resolution screen
« Reply #1 on: March 18, 2015, 11:56:06 AM »
Dynamic font is unstable. Sometimes it reloads the font for no reason, giving you these weird signs. Only solution is to use Bitmap Font.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UILabel artifact on high resolution screen
« Reply #2 on: March 19, 2015, 06:30:23 AM »
That, and NGUI 3.0.9 became obsolete years ago...

zaborius

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: UILabel artifact on high resolution screen
« Reply #3 on: March 19, 2015, 08:15:17 AM »
Thank you, we will try Bitmap font in the problem area.
"That, and NGUI 3.0.9 became obsolete years ago..." - We have come a long way with the old version in current project. It's just small part of ui that has issue. :)

r.pedra

  • Full Member
  • ***
  • Thank You
  • -Given: 7
  • -Receive: 20
  • Posts: 131
    • View Profile
Re: UILabel artifact on high resolution screen
« Reply #4 on: March 19, 2015, 12:41:52 PM »
You can use that to generate your font:
http://kvazars.com/littera/

(Use .txt on the top of the screen instead of XML)