Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Tripwire on February 13, 2013, 11:13:57 AM

Title: Superscript
Post by: Tripwire on February 13, 2013, 11:13:57 AM
Hi,

I would like to add some superscript to my UILabel, i have added them to my font but i can't seem to add them to my UILabel :(
Title: Re: Superscript
Post by: ArenMook on February 13, 2013, 01:35:37 PM
I have no idea what you mean.
Title: Re: Superscript
Post by: Tripwire on February 13, 2013, 02:09:06 PM
Hi,

Check wiki:
http://en.wikipedia.org/wiki/Subscript_and_superscript
Title: Re: Superscript
Post by: Nicki on February 13, 2013, 03:06:05 PM
Add it to the font as special tags like smileys and get them that way.
Title: Re: Superscript
Post by: Tripwire on February 13, 2013, 05:44:56 PM
How does that work? I'm using BMGlyph on MacOSX.
Title: Re: Superscript
Post by: Nicki on February 13, 2013, 07:39:24 PM
Arenmook made a video on making smileys.

What you would do is just to have a letter/number offset directly in the bitmap so that it fits the rest.

http://www.youtube.com/watch?v=JbqfK3mU140

It will likely be a little ugly to get to work, but it should work fine. Doing proper superscript is probably overkill, since you need a completely secondary font for it.
Title: Re: Superscript
Post by: Tripwire on April 03, 2013, 05:31:43 AM
sorry to bump an old topic but i still can't get it to work, i managed to do a workaround by just importing textures of the superscript texts but now i have to use superscript because it's way to much to set 150 trademark symbols by hand as a texture. I did the thing Arenmook did in the video but i can't get it to work. Whenever in my label i add the :) for the trademark symbol (smiles aren't going to be used anyways).
  1. symbol sequence=:) x=340 y=208 with=38 height=38
And the font PNG
http://www.mijnbestand.nl/Bestand-4K3UXYQOYKEK.png (http://www.mijnbestand.nl/Bestand-4K3UXYQOYKEK.png)

Keep in mind that the superscript trademark R is the one bottom right!

So what am i doing wrong here? Is the position off or something?
Title: Re: Superscript
Post by: Nicki on April 03, 2013, 07:11:13 AM
They way symbols are done have changed a bit in the new version. I think there's a newer video showing how it works now.
Title: Re: Superscript
Post by: Tripwire on April 03, 2013, 08:00:44 AM
They way symbols are done have changed a bit in the new version. I think there's a newer video showing how it works now.

Can't find a new video about this item. Can you explain to me how it works in the newest version of NGUI?
Title: Re: Superscript
Post by: ArenMook on April 03, 2013, 08:56:11 AM
Adding emoticons is a part of the new basic video tutorial.