Displaying superscript and subscript in UMG

I was wondering, is there was a way to be able to write superscript and subscript in UMG (or outside of UMG) in a text field? This is for trying to display an equation editor with math functions and assigned variables with several characters in the subscript. At the moment, as far as I know, it seems the only solution to do this that I can think of is to fake it with overlapping text blocks that are anchored appropriately to each other, with the “superscript/subscript” being smaller.
Any thoughts on how to approach this?