Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: whydoidoit on October 21, 2013, 07:05:34 AM

Title: Missing Characters in Dynamic Font NGUI 3.0.2
Post by: whydoidoit on October 21, 2013, 07:05:34 AM
When using Dynamic Fonts in NGUI 3.0.2 some characters end up missing after a time.

I know this problem existed before, and the previous fixed version worked for me (indeed I see the discussion thread is closed).  However, this is back for me on Android at least (S4, HTC One).

I use the same font in three different sizes, but have made three separate copies of the TTF file.  After a while some characters are missing (it's the same as previously reported).
Title: Re: Missing Characters in Dynamic Font NGUI 3.0.2
Post by: ArenMook on October 21, 2013, 01:21:37 PM
You have Pro access now, can you try it with 3.0.3 and its new way of handling dynamic fonts? You can use the same TTF, no need to duplicate anything, and UIFont creation is no longer needed either.
Title: Re: Missing Characters in Dynamic Font NGUI 3.0.2
Post by: whydoidoit on October 21, 2013, 06:29:09 PM
Yep, I'll get right on it :)
Title: Re: Missing Characters in Dynamic Font NGUI 3.0.2
Post by: m.chmielewski on November 05, 2013, 07:52:58 AM
Same problem here.

I've started using NGUI from version 2.6.x and now I'm using 3.0.3f.
However after migrating to 3.x.x it behaves a little bit different than in 2.7.0
In the old version when the bug appears it persists until closing the game.
In the new version sometimes it's enough to reopen in game window and all labels are displayed correctly.

I'm using two fonts in my game: Roboto and GoodTimes
The problem never occurred with Roboto...
Both fonts are free, so you can do some tests.

Bug is present on Sony Xperia X10, Sony T, Samsung S4
On S4 it's almost instant while on the others - after some time.
It never appeared on Samsung Galaxy Nexus.

I hope you find this information usefull.
Title: Re: Missing Characters in Dynamic Font NGUI 3.0.2
Post by: josha on November 05, 2013, 11:50:59 AM
I have the same problem using 3.0.4 with a Sony XPeria Neo V

I use one ttf font at various sizes. In the beginning everything works ok, but then suddenly I don't see any letters or some letters are missing.

One time I even got garbled letters, looking like the letters were drawn from a texture map/atlas with smaller letters (the same effect you get when using bitmap font and there is mismatch between font info and the atlas).

After a while all letters are drawn correctly and everything seems to work fine, but then letters go missing again. I get the feeling this happens after using a specific font size or displaying texts with various font sizes.
Title: Re: Missing Characters in Dynamic Font NGUI 3.0.2
Post by: ArenMook on November 05, 2013, 12:03:45 PM
One of these threads pops up every two weeks or so. Maybe I should sticky it. Unity has a known issue with a certain type of android phones, all running on Quallcomm Snapdragon chips, if I remember correctly.
Title: Re: Missing Characters in Dynamic Font NGUI 3.0.2
Post by: m.chmielewski on November 05, 2013, 12:25:12 PM
Yes, you're right.

http://forum.unity3d.com/threads/190158-Dynamic-Font-Missing-Character-Info-on-certain-devices (http://forum.unity3d.com/threads/190158-Dynamic-Font-Missing-Character-Info-on-certain-devices)