Package pygext :: Package gl :: Module font :: Class GLBitmapFont
[frames | no frames]

Type GLBitmapFont

object --+    
         |    
    GLFont --+
             |
            GLBitmapFont


Bitmap Font

GLBitmapFont allows you to export a png image file from a font including the pixel coordinates for each letter. This png can then be modified in a graphics program and loaded back as a GLFont.
Method Summary
  __init__(self, filename, pngfile)
Open a previously created bitmap font
  create(cls, font, basename, chars, padleft, padright, padtop, padbottom, antialias)
Create a bitmap font template (Class method)
    Inherited from GLFont
  render(self, text, color)
Generate a text entity using the font.

Instance Method Details

__init__(self, filename, pngfile=None)
(Constructor)

Open a previously created bitmap font
Overrides:
pygext.gl.font.GLFont.__init__

Class Method Details

create(cls, font, basename, chars=None, padleft=0, padright=0, padtop=0, padbottom=0, antialias=True)

Create a bitmap font template

font - a pygame Font object or a (name,size) tuple chars - a string of characters that will be rendered (defaults to characters with ascii code 32-128) padleft, padright, padtop, padbottom - add padding to the characters if you intend to add borders/shadows

Generated by Epydoc 2.1 on Mon Jun 12 18:21:21 2006 http://epydoc.sf.net