Author Topic: Superscripts and subscrips in NGUI  (Read 2816 times)

juicedfatboy

  • Guest
Superscripts and subscrips in NGUI
« on: September 18, 2013, 07:53:52 AM »
Hi guys.

I'm currently developing a chemistry oriented game that should display some chemical formulas written with subscripts and superscripts.

Is it possible for UILabel or any NGUI components to handle it? If not, what would be the best approach to make this possible?

Any suggestions are highly appreciated.
Thank you.   :D

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Superscripts and subscrips in NGUI
« Reply #1 on: September 18, 2013, 12:33:38 PM »
As far as I know, you cannot do that out of the box.

I would probably do it by making my own version of UILabel so you could set two sizes of fonts and just have some form of encoding (<sup>/<sub>) inside the text to change it to that.