Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: gyd on September 22, 2016, 02:44:44 AM

Title: [UILabel] multi font in one label
Post by: gyd 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
Title: Re: [UILabel] multi font in one label
Post by: ArenMook 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.
Title: Re: [UILabel] multi font in one label
Post by: gyd 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?
Title: Re: [UILabel] multi font in one label
Post by: ArenMook 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.
Title: Re: [UILabel] multi font in one label
Post by: gyd on September 26, 2016, 04:43:59 PM
okay, thanks anyway :)