Home | Trees | Index | Help |
|
---|
Package pygext :: Package gl :: Module font :: Class 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 | |
---|---|
Open a previously created bitmap font | |
Create a bitmap font template (Class method) | |
Inherited from GLFont | |
Generate a text entity using the font. |
Instance Method Details |
---|
__init__(self,
filename,
pngfile=None)
Open a previously created bitmap font
|
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 |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Mon Jun 12 18:21:21 2006 | http://epydoc.sf.net |