Operator's picture

QuickFont only show shadows

Hi everyone,
This is my first post here, first of all I whant to congratulate you for this projects (OpenTK and QuickFont), they are amazing and works very!

I´m triyng to print text with quickfont but it seems it only print the shadow os the text.
I allready try to put GL.Disable(EnableCap.Texture2D); that I see in this topic http://www.opentk.com/node/2628?page=2 but no success...

this is my code:

GL.Clear(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit);

//draw some data ....

QFont qf = new QFont("Fonts/times.ttf", 50.0f);
qf.Options.Colour = new OpenTK.Graphics.Color4(250f, 0.2f, 0.2f, 1.0f);


//Write the text using QuickFont
GL.Translate(Width * 0.1, Height * 0.1, 0);
qf.Print("PPPPPPPPPPPPPPP", QFontAlignment.Centre);


glControl.SwapBuffers(); // This is needed

sorry for my english...

Thanks all!

Inline Images


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Operator's picture

I solved the problem!

Just need to set polygon mode to to Fill ;)

GL.PolygonMode(MaterialFace.FrontAndBack, PolygonMode.Fill );


the Fiddler's picture

Oh yeah, I've had this happen to me several times.

It's one of the downsides of the bind-to-edit design of OpenGL.