Hello Guest

Author Topic: Broken font on 2.3.3's TextInput? Anyone else?  (Read 5514 times)

test84

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Broken font on 2.3.3's TextInput? Anyone else?
« on: January 27, 2014, 02:04:16 pm »
Hi,

I just upgraded to 2.3.3 just to realize that all the fonts' in TextInputs are broken. I think the material was set to an incorrect font but I changed it and didn't fix it.

Thanks.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Broken font on 2.3.3's TextInput? Anyone else?
« Reply #1 on: January 27, 2014, 02:11:47 pm »
Does it look something like this?
http://2dtoolkit.com/forum/index.php/topic,2181.msg10918.html#msg10918

If ttats the issue -
I can't find the post where I did get to the bottom of it - its a Unity bug which tries to compile the font as a c# script during import and that breaks the link between the font and the sprite collection. Reassiging the bmfont and committing the sprite collection should fix it.

test84

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Re: Broken font on 2.3.3's TextInput? Anyone else?
« Reply #2 on: January 27, 2014, 03:12:18 pm »
Yes that's exactly what happens. But I could not understand what you described to do.

Cheers.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Broken font on 2.3.3's TextInput? Anyone else?
« Reply #3 on: January 27, 2014, 03:21:31 pm »
Open the sprite collection that hosts that font. Find the font in there, it should read "Empty". Reassign the bmfont slot and commit the collection.

test84

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Re: Broken font on 2.3.3's TextInput? Anyone else?
« Reply #4 on: January 27, 2014, 03:54:38 pm »
Thanks, that did it. Please note that I tried a new Unity 4.3.2f1 project and imported tk2d and it still had the same bug.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Broken font on 2.3.3's TextInput? Anyone else?
« Reply #5 on: January 27, 2014, 04:05:27 pm »
That is caused by a nasty Unity bug. It happens sometimes (never had it happen on my tests, but I've got a few projects where it is broken) and there doesn't seem to be any indication its happened. Not sure how to "fix" it since I can't detect Unity screwing it up.

test84

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Re: Broken font on 2.3.3's TextInput? Anyone else?
« Reply #6 on: January 27, 2014, 04:08:13 pm »
Let me give you more info on my setup so it might help:

Unity 4.3.2f1, OS X 10.9.1

Let me know whatever else you might want to know and I'll respond willingly.