OpenGL Font library
OpenGL Font library - 1
Anthony Blackshaw (getant)
This is a font library implementation for Python/OpenGL, it is designed to plug-in to the Viper game engine but it also runs indepently.
The library renders fonts using the textured quads method. The primary goals in developing the library were performance and flexibility, which comes at a slight cost in memory due to the large number of draw arrays the class generates.
Colour, position, angle and scale can all be specified as well as smooth or pixelated texture rendering.
The built-in cache option when calling the mWrite method supports for compiling a draw array for the specified text which greatly improves performance for large amounts of text rendered multiple times.
Modules required: Pygame, PIL, PyOpenGL, and Psyco (used to improve performance, just comment it out if you don't wish to use it).
Pygame.org account Comments
If you wish to leave a comment with your pygame.org account, please sign in first.