Author Topic: Change dynamic font on UILabel per language in NGUI 3.0.3  (Read 3734 times)

liu_yin_

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 11
    • View Profile
Change dynamic font on UILabel per language in NGUI 3.0.3
« on: October 21, 2013, 05:42:28 PM »
I really like the dynamic font support in UILabel in NGUI 3.0.3, which makes things much easier. However, it leaves a question on how to change the dynamic font when user switches to a different language, like from English to Chinese. Previously, we can use reference UIFont to switch font per language. Although I can attach one script per UILabel to change the font in OnLocalize, I am wondering whether there is a better way to do it with the great dynamic font support in UILabel now.

Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Change dynamic font on UILabel per language in NGUI 3.0.3
« Reply #1 on: October 22, 2013, 12:44:45 AM »
OnLocalize would actually be a pretty clever way of doing it, and is actually better than the suggestion I would have given you. Changing fonts when changing languages is something I haven't considered.

dkozlovtsev

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 35
    • View Profile
Re: Change dynamic font on UILabel per language in NGUI 3.0.3
« Reply #2 on: November 06, 2013, 07:06:19 AM »
Sooo, is there any chance that reference fonts will come back? because it was really convinient way to manage fonts per localization and solution proposed by topic started has its problems

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Change dynamic font on UILabel per language in NGUI 3.0.3
« Reply #3 on: November 06, 2013, 07:13:10 AM »
I have another idea in mind instead. I'll have to prototype it before I talk about it though.

JSorrentino

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 30
    • View Profile
Re: Change dynamic font on UILabel per language in NGUI 3.0.3
« Reply #4 on: February 05, 2014, 12:50:48 PM »
I have another idea in mind instead. I'll have to prototype it before I talk about it though.

Has this prototype for dynamic font switching come out yet, as font atlases (currently) don't support dynamic fonts, just bitmap. 

Grazie!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Change dynamic font on UILabel per language in NGUI 3.0.3
« Reply #5 on: February 05, 2014, 02:04:28 PM »
No, not yet.