On Apr 22, 2007, at 12:04 AM, Lennox Jacob wrote: > Thanks Karen, > No I don't need it in an editfield. > I need it in printing, for example, I need to print 2+3 with the + > and 3 as superscripts. > Any suggestions/
Just do it! Decide what the main fontsize is to be and how much smaller you want the superscripts to be (maybe 2/3rds or 3/4ths the main text size) Decide what Y offset you want for the Superscript. I like: SuperScriptDeltaY = MainTextAscent + SuperScriptTextHeight/2 - SusperScriptTextAscent Brake the string into sections of regular text and superscripts Draw the segments of regular text and superscripts sperately using g.StringWidth to figure out the X offsets for the positions to draw each segment. HTH - Karen _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
