This technique was employed when I was looking to render text using OpenGL in a web application.
It was never intended to be a permanent solution, rather just a placeholder to continue developing other areas of the application.
This approach rendered text by drawing triangles, and was used in an early Javascript/HTML/OpenGL version of my CAD application. The font glyphs were pre-rendered to a JSON structure to be included by OpenGL, via External link Three.js.
Employing External link Node.js, a Javascript program was written to pre-process the glyphs, and followed the following steps:
While it worked, glyphs needed generated in advance and files could be large.
This technique was replaced when the application was moved off the web.