fonts problem

hi to all.

i am using bitmap fonts which created by this way:

CreateFont()
SelectObject()
wglUseFontBitmaps()

When i try to put a text to screen with glCallList, if text coordinates are out of screen it does not appear.

I have a long string and i want to slide it from right to left at bottom of screen. But when text reaches to left side of screen it disappear.

glRasterPos() used for setting the coordinates.

thanks…

This problem is mentioned in Kilgaard’s article about common OpenGL pitfalls : http://www.opengl.org/developers/code/features/KilgardTechniques/oglpitfall/oglpitfall.html (9th point)

In short, the raster position is processed like a vertex, so it is clipped against the viewing frustum. If it is outside the frustum (== gets clipped), subsequent raster operations are discarded.