PyGame can apparently render text to bitmaps quite nicely (so can
wxPython, for that matter). I've never gone this route myself.
GLUT has a very limited set of fonts available (see the
OpenGLContext/tests directory for a quicky sample of using that).
That's cross-platform, and generally available when PyOpenGL is.
Until/unless we get one of the "proper" font-rendering libraries
wrapped, those are probably your best bets.
HTH,
Mike
Andrew Jones wrote:
> I'm fairly new to OpenGL and have been searching for something that
> will show me how to display text, but all the tutorials I have been
> able to find have been using windows fonts. For example, the
> documentation for rendering text using OpenGLContext
> (http://pyopengl.sourceforge.net/context/text.html) is only available
> on Windows systems. I need a method for displaying text which can be
> used on both Linux and Windows platforms. Could somebody point me in
> the direction of the best way to do this? Thanks,
>
> Andrew
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by:Crypto Challenge is now open! Get
> cracking and register here for some mind boggling fun and the chance
> of winning an Apple iPod:
> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> _______________________________________________
> PyOpenGL Homepage
> http://pyopengl.sourceforge.net
> _______________________________________________
> PyOpenGL-Users mailing list
> PyO...@li...
> https://lists.sourceforge.net/lists/listinfo/pyopengl-users
>
--
_______________________________________
Mike C. Fletcher
Designer, VR Plumber, Coder
http://members.rogers.com/mcfletch/
|