mshsrfc's picture

QuickFont

Hi

I have just started using quikfont and it does not seem to respond to color and is always white text

QFont font = new QFont("Fonts/times.ttf", 12);

if (!font.fontLoaded)
return;

GL.PushAttrib(AttribMask.ColorBufferBit);
GL.Color3(tcolor);

QFont.Begin();
GL.Translate(x, y, 0);
font.Print(str);
QFont.End();

I have tried multiple tcolors but always white text

Any ideas

Mike Haville


Comments

Comment viewing options

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

Try something like this:

font.Options.Colour = new Color4(tcolor);