Author Topic: [UILabel] multi font in one label  (Read 2845 times)

gyd

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 87
    • View Profile
[UILabel] multi font in one label
« on: September 22, 2016, 02:44:44 AM »
is it possible to add a tag to switch font in a label like:

He is a Super Star, I love him.

or even a tag to change the font size :
He is a [size=36]Super Star[/size], I love him.

thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: [UILabel] multi font in one label
« Reply #1 on: September 23, 2016, 03:49:29 PM »
No, NGUI's labels don't allow font switching in the middle of the line. You can use [ sub ] and [ sup ] tags, as well as [ b ] and [ i ], but that's it.

gyd

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 87
    • View Profile
Re: [UILabel] multi font in one label
« Reply #2 on: September 24, 2016, 04:14:07 PM »
yes, i know it's not for now, what i asked is...will it possible in the future updates  :D?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: [UILabel] multi font in one label
« Reply #3 on: September 25, 2016, 08:03:33 PM »
I may add support for multiple bitmap fonts at some point, assuming they all use the same atlas -- but it would be a "maybe". I tend to add features I find concrete use for. Adding font switching in the middle of text never seemed like a useful thing for game UIs.

gyd

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 87
    • View Profile
Re: [UILabel] multi font in one label
« Reply #4 on: September 26, 2016, 04:43:59 PM »
okay, thanks anyway :)