My idea was to have a function that (at least in version 1) would be sent a string of characters with formatting codes embedded in the string eg
~2 would mean that the 2 is the the numerator while #3 would mean the three was the denominator (2/3)
so if I sent "5X~1#2=x" then it would print as "5X�=x"
This function would need to know the widths of the characters (using sprite fonts we could find these) Be able to print the characters at half size (with a line between them) (once again Sprite fonts should be able to scale)
Here is a start - and it is very rough - but maybe you could use it ?
The sprite font was from a tutorial by Paradox - which I recommend you look at.
warning rough !
I intend to revisit this in the not too distant future - but I do get easily distracted !
Hope it, at least, makes some sense ?