Lazarus
Programming => LCL => Topic started by: alexander on January 20, 2017, 05:20:13 pm
-
The tutorial http://wiki.lazarus.freepascal.org/OpenGL_Tutorial#Bitmap_fonts explains how to render text in opengl using glut. However I would like to use openglcontext and not glut. Is there another easy way to render text?
-
Trying to push this up, maybe there's some answer meanwhile.
I'm also interested in a solution; the strange thing is that the tutorial discourages using Glut first, but then uses it for rendering text... :-\
-
In TAChart we use the LazFreeType routines for painting text in OpenGL: unit TAOpenGL contains the basic class, TGLFreeTypeHelper, and is pretty much self-contained. It requires TAFonts which is self-contained, too. Application of TGLFreeTypeHelper can be seen in unit TAOpenGLDrawer. You find all these units in folder components/tachart of your Lazarus installation.
-
Search for "signed distance fonts" on this forum
-
Great! Thanks :)