Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Tim on May 08, 2012, 10:56:03 AM

Title: Switching fonts for localization
Post by: Tim on May 08, 2012, 10:56:03 AM
I have localization working except I'm currently just switching between English words and a test word.  Before I dive to deep into this I wanted to make sure I was going down the right path.  The way the localization example is set up, all glyphs for all languages need to be in the same font correct?

I am new to localizing but I'm guessing if you want to support, for example English and Chinese, then normally that would be two separate fonts.  So, I would need to have localization change the font also, is that correct?  It looks like the current LanguageSelection script on the UIPopup does not do that, so this is something I would need to add.

Does that make sense, or am I missing something?  Thanks
Title: Re: Switching fonts for localization
Post by: ArenMook on May 08, 2012, 11:44:24 AM
When Localization switches languages, it sends out the OnLocalize event. Your custom script can pick it up and switch the font as needed.