OpenGL and Glut Text Help.

I am making a kind of word processor that only reads from a .txt file and writes to a screen. I have all the reading and displaying stuff down, I even have it make new lines when a word gets too long. However, I am simply add 15 to the X coordinate every time I draw a new letter. I need some way to detect how big the current character is and add that much instead of a simple 15. I'm using glRasterPos3f() and glutBitmapCharacter(). Thanks for your help!

- Kyle
Topic archived. No new replies allowed.