about glRasterPos and wglUseFontOutline

Can I use glRasterPos and wglUseFontOutline to create a chinese character? How can I create a glyph at any positon?

thanks

Hi,

You can’t use glRasterPos with outline fonts, it only works on bitmaps, created by wglUseFontBitmap or something like that. Outline fonts are placed by glTranslatef, just like any other geometry. If you like to place them by window coordinates, set up an orthographic projection with same dimensions as you window. In practice
gluOrtho2d(0, window_width, 0, window_height)

-Ilkka