Outline Fonts and Face Culling

Hi there all,

I have an 3D OpenGL double buffered window showing two display lists. I’d like to show some outline fonts in the display. After setting up routines to build my fonts (wglUseFontOutlines) into a display list (required for a double buffered window?) I have some interesting effects.

  1. No text is displayed.
  2. All the faces seem to be reversed and I only see back faces. (I had back face culling enabled). If I don’t call my set up font routine then the face reversal doesn’t happen.
  3. I get the following wgl error messages from my wglUseFontOutlines command:

WGL Message:WGL: Update: MoveWindowBlt: DDERROR = DDERR_INVALIDRECT

WGL Message:WGL: UpdateDepth: MoveWindowBlt: DDERROR = DDERR_INVALIDRECT

My use outlines command is as follows:

wglUseFontOutlines(hDC,0,255,base,0.0f,0.2f,WGL_FONT_POLYGONS,gmf);

I am using glGenLists to find a suitable base and hDC is the same variable used to initialise my window.

Help…please…I’ve searched all over the web for advice and can’t find anything.

Thanks,

Presence.