2D Toolkit Forum

2D Toolkit => Support => Topic started by: test84 on January 27, 2014, 02:04:16 pm

Title: Broken font on 2.3.3's TextInput? Anyone else?
Post by: test84 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.
Title: Re: Broken font on 2.3.3's TextInput? Anyone else?
Post by: unikronsoftware 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.
Title: Re: Broken font on 2.3.3's TextInput? Anyone else?
Post by: test84 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.
Title: Re: Broken font on 2.3.3's TextInput? Anyone else?
Post by: unikronsoftware 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.
Title: Re: Broken font on 2.3.3's TextInput? Anyone else?
Post by: test84 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.
Title: Re: Broken font on 2.3.3's TextInput? Anyone else?
Post by: unikronsoftware 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.
Title: Re: Broken font on 2.3.3's TextInput? Anyone else?
Post by: test84 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.