The Python Imaging Library |
![]() |
|
Copyright © 1997 by Fredrik Lundh <fredrik@pythonware.com> | ||
Updated 20 Aug 1997 |
< The ImageFilter Module | The ImageFont Module | The ImageTk Module >
The ImageFont module defines a class with the same name. Instances of this class store bitmap fonts, and are used with the text method in the ImageDraw class.
PIL uses it's own font file format to store bitmap fonts. You can use the bdf2pil.py utility to convert BDF font descriptors (X window font sources) to this format. Future releases will include converters for more formats.
load( file ) loads a font from the given file, and returns the corresponding font object. If this function fails, it raises an IOError exception.
< The ImageFilter Module | The ImageFont Module | The ImageTk Module >