OpenGLContext.scenegraph.text.glutfont
GLUT-based fonts
Classes
class _GLUTFontProvider(
FontProvider
):
Singleton for creating new GLUTBitmapFonts
enumerate(
self
,
mode
= None
)
Iterate through all available fonts (whether instantiated or not)
Just returns the bitmapFonts keys, which will
get each of the font-types which are available.
fontHash(
family
,
size
)
Given family and size get hashable key for lookups
OpenGL-ctypes gives you the underlying GLUT font void*, whereas
PyOpenGL gave you an integer value
A GLUT-provided Bitmap Font
XXX current doesn't pay attention to fontStyle, should
get justification from it at least.
lists(
self
,
value
,
mode
= None
)
Get a sequence of display-list integers for value
Basically, this does a bit of trickery to do
as-required compilation of display-lists, so
that only those characters actually required
by the displayed text are compiled.
NOTE: Must be called from within the rendering
thread and within the rendering pass!