Author Topic: Superscript  (Read 7687 times)

Tripwire

  • Full Member
  • ***
  • Thank You
  • -Given: 9
  • -Receive: 0
  • Posts: 163
    • View Profile
Superscript
« 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 :(

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Superscript
« Reply #1 on: February 13, 2013, 01:35:37 PM »
I have no idea what you mean.

Tripwire

  • Full Member
  • ***
  • Thank You
  • -Given: 9
  • -Receive: 0
  • Posts: 163
    • View Profile
Re: Superscript
« Reply #2 on: February 13, 2013, 02:09:06 PM »

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Superscript
« Reply #3 on: February 13, 2013, 03:06:05 PM »
Add it to the font as special tags like smileys and get them that way.

Tripwire

  • Full Member
  • ***
  • Thank You
  • -Given: 9
  • -Receive: 0
  • Posts: 163
    • View Profile
Re: Superscript
« Reply #4 on: February 13, 2013, 05:44:56 PM »
How does that work? I'm using BMGlyph on MacOSX.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Superscript
« Reply #5 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.

Tripwire

  • Full Member
  • ***
  • Thank You
  • -Given: 9
  • -Receive: 0
  • Posts: 163
    • View Profile
Re: Superscript
« Reply #6 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

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?

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Superscript
« Reply #7 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.

Tripwire

  • Full Member
  • ***
  • Thank You
  • -Given: 9
  • -Receive: 0
  • Posts: 163
    • View Profile
Re: Superscript
« Reply #8 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?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Superscript
« Reply #9 on: April 03, 2013, 08:56:11 AM »
Adding emoticons is a part of the new basic video tutorial.