Gee I'm beginning to sound repetitive today...
OpenGLContext has code for rendering 3D fonts using TrueType font
outlines extracted directly from .ttf files using FontTools and
TTFQuery. This works on Linux and Windows (should work anywhere, since
there's no system dependencies other than the code for *finding* system
.ttf files). It could use a better algorithm for choosing a *default*
font (it will often choose a font that doesn't have any of the ASCII
glyphs when on Linux). That shouldn't be a problem if you have a
*particular* font you intend to use.
You can also use PyGame anti-aliased bitmap fonts. Again, demo code in
OpenGLContext.
wxPython can be used for aliased fonts... and again, where to go for
demo code... :)
Good luck,
Mike
fulko wrote:
>Hello,
>
>I would like to use better fonts than those included in glut. There
>are some OpenGL font projects, like gltt, ftgl, glf, glfont, etc.
>Unfortunately, none of them has a Python interface. Does anyone know
>a way to render fonts under PyOpenGL working on Linux/Unix (preferably
>working on Windows too).
>
>Thanks,
>Fulko
>
>P.S. I tried to use SWIG with ftgl: no success at all
>
>
________________________________________________
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
|