Author Topic: Corrupted Fonts  (Read 7625 times)

neeraj

  • Newbie
  • *
  • Thank You
  • -Given: 7
  • -Receive: 1
  • Posts: 38
    • View Profile
Corrupted Fonts
« on: May 07, 2015, 04:15:12 AM »
I am having issue with one of the fonts, it gets corrupted. A restart sometime fixes it.
Can anyone point out the issue?

PS: Other bitmap fonts work fine and i recreated the same font to check if it fixes it but it does not.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Corrupted Fonts
« Reply #1 on: May 07, 2015, 09:25:35 PM »
You will need to provide a lot more information to go on than that. What are you doing in your code or in general to make it happen, what type of font is it, what shader the material is using, etc.

neeraj

  • Newbie
  • *
  • Thank You
  • -Given: 7
  • -Receive: 1
  • Posts: 38
    • View Profile
Re: Corrupted Fonts
« Reply #2 on: May 08, 2015, 12:34:22 AM »
Its a predefined text, i am just turning it on and off. The font name is Sergio Symbol, its a bitmap font created using NGUI. It does not happen in the build (Editor only) but its difficult to work with. Some times a unity restart fixes it.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Corrupted Fonts
« Reply #3 on: May 09, 2015, 04:15:45 AM »
There is no reason for this to happen with bitmap fonts. What version of NGUI and Unity are you using?

neeraj

  • Newbie
  • *
  • Thank You
  • -Given: 7
  • -Receive: 1
  • Posts: 38
    • View Profile
Re: Corrupted Fonts
« Reply #4 on: May 09, 2015, 05:02:54 AM »
I am using Unity 5.0.1f1 and NGUI 3.0.9 f7.

neeraj

  • Newbie
  • *
  • Thank You
  • -Given: 7
  • -Receive: 1
  • Posts: 38
    • View Profile
Re: Corrupted Fonts
« Reply #5 on: May 12, 2015, 03:41:19 AM »
Will there be any problem if i want to update to the latest version of NGUI? because there are a lot of UI elements.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Corrupted Fonts
« Reply #6 on: May 14, 2015, 05:52:41 PM »
Yeah 3.0.9 is ancient. I can't do much with that...

neeraj

  • Newbie
  • *
  • Thank You
  • -Given: 7
  • -Receive: 1
  • Posts: 38
    • View Profile
Re: Corrupted Fonts
« Reply #7 on: May 17, 2015, 07:28:14 AM »
Should i just import it again? or delete the NGUI folder before importing the updated plugin?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Corrupted Fonts
« Reply #8 on: May 22, 2015, 03:35:49 PM »
Always make a backup first, then follow instructions in the readme file that involve starting a new scene and deleting the old NGUI.