Author Topic: Missing Characters in Dynamic Font NGUI 3.0.2  (Read 6395 times)

whydoidoit

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Missing Characters in Dynamic Font NGUI 3.0.2
« 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).

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Missing Characters in Dynamic Font NGUI 3.0.2
« Reply #1 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.

whydoidoit

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Re: Missing Characters in Dynamic Font NGUI 3.0.2
« Reply #2 on: October 21, 2013, 06:29:09 PM »
Yep, I'll get right on it :)

m.chmielewski

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Missing Characters in Dynamic Font NGUI 3.0.2
« Reply #3 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.
« Last Edit: November 05, 2013, 08:04:31 AM by m.chmielewski »

josha

  • Guest
Re: Missing Characters in Dynamic Font NGUI 3.0.2
« Reply #4 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Missing Characters in Dynamic Font NGUI 3.0.2
« Reply #5 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.

m.chmielewski

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile