Author Topic: MultiLanguage support on Android device.  (Read 4190 times)

magicafe

  • Guest
MultiLanguage support on Android device.
« on: May 21, 2013, 10:34:48 PM »
This days I am testing multi-language support with dynamic font using Unity 4.1.2f1 and NGUI 2.6.1e, and everything is going well on IOS device, but there is some problem on android device.

In test, I import a TTF font file at first, for example, 'Arial.ttf'. Then I make dynamic font prefab with this font.
Then I create five NGUI Label using this dynamic font prefab, each for a language: English, Chinese, Japanese, Korean and Arabic. The texts in these labels are 'Good morning', '早安', 'おはようございます', '좋은 아침' and 'صباح الخير' one by one.

In the test above, everything is going well in Editor mode and IOS device, but after I compile it onto Android device, there is a weird issue: if we use Android 4.2.2, then on one device Chinese doesn't display while on another device Korean doesn't display. But if I use Android 2.2.6, all language display perfectly. And I do not know why? According to the documentation, if the imported font doesn't support the texts in label, it will automatically use system font, so I check my device and I find they have Chinese and Korean font. So I have no idea where is the problem, it there anyone can check it.

I uploaded my test unitypackage. Thanks.
BTW, you need 'Unity Arabic Support' plugin to run this demo. This plugin is free. :)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: MultiLanguage support on Android device.
« Reply #1 on: May 22, 2013, 09:55:34 AM »
This would be a question for Unity, not NGUI. NGUI simply uses what Unity offers in this case. There is really not much I can do about this.

magicafe

  • Guest
Re: MultiLanguage support on Android device.
« Reply #2 on: May 22, 2013, 10:55:42 PM »
Thanks.
And I have logged out CharacterInfo which requested from Font, and I found some character's uv and vert is wrong. So I agree that it is a problem of unity. :'(

ivomarel

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 53
    • View Profile
Re: MultiLanguage support on Android device.
« Reply #3 on: June 03, 2013, 05:02:03 AM »
I encountered a similar problem (with an Arab font), which in my case was caused by the font I was using, it apparently did not support Arabic. Changing it to a standard font  (such as Tahoma - added to this post) was the simple but effective solution. Hope it helps.