Or, the way the engine does it is to use "the textshift"... set the textShift of char 2 of field "textField" to -4 --superscript set the textShift of char 5 of field "textField" to 4 --subscript
The IDE uses a handler called "ideStyleText" located in stack "revidelibrary" if you want to take a look. Brian On Sun, Sep 10, 2017 at 10:35 PM, Terry Judd via use-livecode < [email protected]> wrote: > Hi Roger – you can set subscripts and superscripts by settings the > htmlText. So, something like: > > set the htmlText of word 5 of fld “x” to “m<sup>2</sup>” > > Terry... > > On 11/09/2017 1:07 pm, "use-livecode on behalf of Roger Guay via > use-livecode" <[email protected] on behalf of > [email protected]> wrote: > > Since one can set the subscript or superscript of a character from the > Text menu, presumably there are commands to do so as well? I can’t find > such a thing! Help please. > > Thanks, > > Roger > _______________________________________________ > use-livecode mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
