superscript text

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Preston Shea
Posts: 73
Joined: Sat Apr 08, 2006 6:51 pm

superscript text

Post by Preston Shea » Wed Feb 02, 2011 7:47 pm

I'm having difficulty with using superscript for footnote numbers in text. The characters selected and styled superscript become smaller (too small in fact) but they are on the same base line as the rest of the text instead of raised above it.

Also fonts in my text fields seem smaller than they normally are. I have to use size 24 to get letters that in my word processor look about the same at 12 point. Am I doing something wrong?
In nova fert animus mutatas dicere formas corpora.

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: superscript text

Post by BvG » Wed Feb 02, 2011 7:59 pm

That's weird, i do not get the small type, and superscript works as intended... what's you OS setup, and LC version?

also try to set fixedLineHeight to false, see if it helps...
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

Preston Shea
Posts: 73
Joined: Sat Apr 08, 2006 6:51 pm

Re: superscript text

Post by Preston Shea » Wed Feb 02, 2011 10:32 pm

BvG wrote:That's weird, i do not get the small type, and superscript works as intended... what's you OS setup, and LC version?

also try to set fixedLineHeight to false, see if it helps...

I'm running LC 4.5.0 on a Dell latitude under Windows XP. I tried fixedlineHeight from the inspector checkbox, not a handler and it doesn't make a difference. Subscript produces exactly the same result.
In nova fert animus mutatas dicere formas corpora.

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: superscript text

Post by mwieder » Wed Feb 02, 2011 11:32 pm

You're using textshift to set the superscript feature, right? It's working for me on XP, OSX, and linux, and in fact I need it. What's your code look like that sets the shift amount?

Preston Shea
Posts: 73
Joined: Sat Apr 08, 2006 6:51 pm

Re: superscript text

Post by Preston Shea » Thu Feb 03, 2011 1:29 am

Thank you so much! I never heard of textShift -- but then I never tried to use superscript in all these years.
In nova fert animus mutatas dicere formas corpora.

Post Reply