Is there a clever way to do subscripts in LC text?

Mark Schonewille m.schonewille at economy-x-talk.com
Fri Jan 3 11:00:48 EST 2014


Hi Graham,

You can use the textShift property for subscript and superscript.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other 
colour spaces. http://www.color-converter.com

Buy my new book "Programming LiveCode for the Real Beginner" 
http://qery.us/3fi

Fill out this survey please
http://livecodebeginner.economy-x-talk.com/survey/

On 1/3/2014 16:47, Graham Samuel wrote:
> I'm having to show some simple mathematical expressions which involve subscripts (like say a little figure 2 below the line in an otherwise normal text); and in principle I'd like to have superscripts as well.
>
> As there's nothing in the Dictionary about this, I constructed my expressions (which luckily are static things) by creating a group of little fields and adjusting their vertical relationships. This seems very clunky and also doesn't work too well cross-platform since different fonts behave differently. Also if it wasn't static - I mean if I wanted my user to be able to write stuff like this - I have no idea how I'd do it.
>
> Is there a better way?
>
> TIA
>
> Graham





More information about the use-livecode mailing list