OpenGLContext.scenegraph.text.pygamefont
PyGame bitmap and texmap fonts
Classes
class _PyGameFontProvider(
TTFFontProvider
):
A PyGame-provided Bitmap Font
createCharTexture(
self
,
char
,
mode
= None
)
Create character's texture/bitmap as a Numeric array w/ width and height
This uses PyGame and Numeric to attempt to create
an anti-aliased luminance texture-map of the given
character and return it as (data, width, height).
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!