Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: zaborius on March 18, 2015, 11:47:23 AM

Title: UILabel artifact on high resolution screen
Post by: zaborius 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!
Title: Re: UILabel artifact on high resolution screen
Post by: r.pedra 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.
Title: Re: UILabel artifact on high resolution screen
Post by: ArenMook on March 19, 2015, 06:30:23 AM
That, and NGUI 3.0.9 became obsolete years ago...
Title: Re: UILabel artifact on high resolution screen
Post by: zaborius 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. :)
Title: Re: UILabel artifact on high resolution screen
Post by: r.pedra 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)