|
-
Dec 27th, 2001, 01:16 AM
#1
Thread Starter
New Member
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 ?
-
Dec 27th, 2001, 05:00 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|