Welcome,
Guest
. Please
login
or
register
.
April 24, 2026, 02:48:51 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Superscripts and subscrips in NGUI
« previous
next »
Print
Pages: [
1
]
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.
Logged
Nicki
Global Moderator
Hero Member
Thank You
-Given: 33
-Receive: 141
Posts: 1,768
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.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Superscripts and subscrips in NGUI