I have an app that uses many TextFields to allow users to edit various pieces of text. I would like to be able to emulate “superscript,” in a sense. That is, I would like to be able to raise a portion of text off the baseline by a certain number of points.
Going into this project I assumed that I could use the leading attribute of the TextFormat object to achieve this, but I’ve found that you can only apply leading to an entire line of text or an entire TextField. Not to mention, the TextFormat’s leading property does not behave the same as real leading.
This sort of thing can be done with CSS, but since you can’t edit TextFields that utilize Style Sheets, I haven’t even pursued this… To my knowledge, all I have to work with are the basic set of html tags available to TextFields for htmlText and the TextFormat object.
Can anyone think of a way to do this? I am not adamant about using TextFields, so if there is another control or input that would work better, I’d gladly switch over.