Font Help

Hello,
How can I draw text in 3D coordinates?
Does OpenTK has bindings for wglUseFontOutlines and GLYPHMETRICSFLOAT ?
Thank You!


Comments

Re: Font Help
posted by objarni

Simple answer: The OpenTK Font API does not support that. It's top-of-screen-only.

But there might be some tricks to access the font-APIs glyph (vertice) data for fonts anyway, someone know howto?

That way you could possibly draw text yourself wherever you want it.

Re: Font Help
posted by khdani

OK, I used Tao Framework to access the wglUseFontOutlines and GLYPHMETRICSFLOAT. It draws the text in 3D coordinates, though with some performance hit. However the text doesn't seems to be affected by any colors, it just drawn in grey color for some reason and I can't change it, I tried disabling any lighting and tried any colors variation it just doesn't affect the text. Is there a particular reason for that or is it something with my code?

Re: Font Help
posted by khdani

Found the problem, I had to disable Texturing.

Thanks Objarni.

Re: Font Help
posted by objarni

You're welcome but I think you found the solution without my help :)