OpenGLContext/scenegraph/text/wxfont.py
has code for using wxPython to create aliased (i.e. non-antialiased)
bitmap fonts. wxPython doesn't AFAIK allow for extracting font outlines,
so for that you'd need to use something like the fonttools fonts in:
OpenGLContext/scenegraph/text/toolsfont.py
which uses TTFQuery/FontTools to extract font outlines from .ttf files.
You can also use GLUT fonts in a wxPython context, btw.
HTH,
Mike
Frank Chen wrote:
> Hi:
> Is there any example to display text with wxPython?
> To use bitmap font?
> To use outline font?
________________________________________________
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
|