Re: [PyOpenGL-Users] any font fns on the horizon? (in Linux)
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@ro...> - 2003-09-21 22:38:43
|
Maciej Kalisiak wrote: >Is there any work being done on getting some font functionality into >PyOpenGL? I'm mostly interested in fonts for just plain OpenGL (i.e., >not GLUT, not GLContext... don't want to port my code, if I can help >it). > Realistically, no. I'm barely managing to find time to work on PyOpenGL once every couple of months with my new job, and then only for a few hours to try and integrate patches and/or work on fixing particular errors. Keep in mind that the code inside GLContext is available to rip out and use even if you don't want to use the rest of it. I tried to keep the code that actually does the rendering separate from the OpenGLContext scenegraph code. It provides polygonal (via TTFQuery/FontTools), anti-aliased bitmap (PyGame) and aliased bitmap (wxPython) font types. It does not, however, do anything with hinting. >If so, what type will they be? Lines? Polygonal? Texture-based? > > Again, nothing is planned for the core system (by me, anyway). OpenGLContext has code samples for doing all of those IIRC. >For the time being, until something official (and solid) comes out in >PyOpenGL, I've hacked myself a SWIG wrapper for a set of C functions >that do texture fonts, the ones described here: > http://www.opengl.org/developers/code/mjktips/TexFont/TexFont.html > >If anyone is interested, I can make it available. Drop me a line and >I'll try to clean it up before putting it up online. Be warned though, >it is just a quick SWIG wrap (and I just "learned" SWIG), *and* even the >original is not the cleanest, most robust C code either. A bit of >tweaking will likely be necessary. > > If you want, put a feature request on the site for linking to this module and I'll try to get to it when I find some time. Should really have links to all of the approaches we have available I suppose. Sigh. Enjoy yourselves, Mike _______________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://members.rogers.com/mcfletch/ |