Author Topic: Dynamic font randomly don't show properly  (Read 64800 times)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Dynamic font randomly don't show properly
« Reply #30 on: June 13, 2013, 04:11:22 AM »
Unity doesn't handle its own classes the same way.

EncoreYang

  • Guest
Re: Dynamic font randomly don't show properly
« Reply #31 on: June 17, 2013, 04:25:55 AM »
Hi Aren,
  We face the same issue also, for most Qualcomm devices, words are missing sometimes, however it won't happen if we use the original Unity text, this week is the deadline for delivering our game, thank you very much if you can help us out.

jarjin

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 28
    • View Profile
Re: Dynamic font randomly don't show properly
« Reply #32 on: June 17, 2013, 06:23:05 AM »
Hi Aren,
  We face the same issue also, for most Qualcomm devices, words are missing sometimes, however it won't happen if we use the original Unity text, this week is the deadline for delivering our game, thank you very much if you can help us out.

me too!~ Aren please help us, thx!!!!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Dynamic font randomly don't show properly
« Reply #33 on: June 17, 2013, 09:54:10 PM »
I can't fix it, because as far as I know the problem is in Unity's code somewhere. CheckIfRelated returning 'true' means that every single label in the scene gets their data rebuilt, basically forcing a refresh -- and even that doesn't fix it. You have to wait for Unity to fix their bug.

Until then, pre-load characters into the font. Have a script that does UIFont.dynamicFont.RequestCharactersInTexture("abcdefg...etc"); for all the characters you need up front.

eddieB

  • Guest
Re: Dynamic font randomly don't show properly
« Reply #34 on: June 18, 2013, 08:58:58 PM »
we release the game with this fixing way, and after one day we add some mail from client on android where they say that some letter are missing.( japanese game)
this bug can be fixed on one device but not fixed on an other and the amount of device to test is big.




 

haoxiucai001

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
    • View Profile
Re: Dynamic font randomly don't show properly
« Reply #35 on: June 19, 2013, 08:18:12 PM »
V:NGUI2.6.1e
U:4.1.3f3
Repetition steps on pc
1.creat a chinese font (font size 16 ,font prefab font size 32)(input 中华人民共和国)
2.creat a label uese this font
3.creat a unity's 3d text(input 中华人民共和国)
4.change the 3d text tab size to 128
5. look ngui's label -> chaos

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Dynamic font randomly don't show properly
« Reply #36 on: June 20, 2013, 07:28:04 AM »
Well of course that breaks it. Unity 3D text changes doesn't inform NGUI. You shouldn't use 3D text at the same time as NGUI text.

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: Dynamic font randomly don't show properly
« Reply #37 on: June 25, 2013, 01:45:14 PM »
Apparently we fix this bug duplicating the TTF file for each Dynamic Font prefab.
Didn't fix it, continues missing some letters.
« Last Edit: June 25, 2013, 03:53:02 PM by jeldrez »

PoN

  • Full Member
  • ***
  • Thank You
  • -Given: 1
  • -Receive: 4
  • Posts: 111
    • View Profile
Re: Dynamic font randomly don't show properly
« Reply #38 on: June 25, 2013, 09:34:42 PM »
I have same problem ,pic below
Worked on Doc&DogAge Of Fury 3D. Actually working on WarMach.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Dynamic font randomly don't show properly
« Reply #39 on: June 26, 2013, 12:28:25 PM »
As I mentioned above:
I can't fix it, because as far as I know the problem is in Unity's code somewhere. CheckIfRelated returning 'true' means that every single label in the scene gets their data rebuilt, basically forcing a refresh -- and even that doesn't fix it. You have to wait for Unity to fix their bug.

Until then, pre-load characters into the font. Have a script that does UIFont.dynamicFont.RequestCharactersInTexture("abcdefg...etc"); for all the characters you need up front.

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: Dynamic font randomly don't show properly
« Reply #40 on: June 26, 2013, 04:27:23 PM »
As I mentioned above:
Not even that made it works.
I don't know what else to do and we launch the game next week to the app store. After Earth have this issue and it's already on the store.


It was changing the text on the update, added a delay before this apparently made it work. QA is testing now, I'll let you know how it works.
« Last Edit: June 26, 2013, 06:00:26 PM by jeldrez »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Dynamic font randomly don't show properly
« Reply #41 on: June 27, 2013, 12:13:53 AM »
If it's any consolation, we're about to run into the same exact issue with uGUI (upcoming built-in GUI), so chances are we will have to find and fix the bug internally in the C++ code.

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: Dynamic font randomly don't show properly
« Reply #42 on: July 01, 2013, 11:02:56 AM »
Aren, what about Unity 4.1.5 update?
It says it fixed:
Quote
Cross-platform dynamic fonts efficiently render any character set at any resolution.

Or it's not the same?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Dynamic font randomly don't show properly
« Reply #43 on: July 01, 2013, 11:43:14 PM »
That's not it.

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: Dynamic font randomly don't show properly
« Reply #44 on: July 03, 2013, 01:52:42 PM »
This bug really frustrate me, because the font was working properly at the beginning, I was just using 2 fonts ie: Arial and Arial Bold. But after started creating specific sized fonts like Arial 15, Arial 35, Arial 80, Arial Bold 50, Arial Bold 20, etc. the project starts messing up with the fonts. I just started using this specified size text to match Shrink to Fit option on the UILabels. I also duplicate the TTF for each size but doesn't make any change apparently.

I would like to come back to use just 2 fonts: Arial and Arial Black, for that Shrink to Fit should work with the specified size on the Transform panel not the Font size. I think that could work.

Thanks.