Results 1 to 2 of 2

Thread: Printing subscripts and superscripts to screen.

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2001
    Location
    India
    Posts
    4

    Printing subscripts and superscripts to screen.

    How do I print subscripts and superscripts to screen ?

    for example,how do i print 2 as a superscript as in x^2 ?
    Can i use printf ?

  2. #2
    jim mcnamara
    Guest
    You cannot do it in console mode apps.

    In Win32 apps, you have to use the window's hDC to use TextOut api or DrawText api. These allow yuou to position text exactly.

    A simpler approach is to change fonts for the window and use a math symbols font .

    The attached zip file has math.ttf - a math symbol truetype font.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width