BdfFontFile
index
/Library/Python/2.7/site-packages/PIL/BdfFontFile.py

# The Python Imaging Library
# $Id$
#
# bitmap distribution font (bdf) file parser
#
# history:
# 1996-05-16 fl   created (as bdf2pil)
# 1997-08-25 fl   converted to FontFile driver
# 2001-05-25 fl   removed bogus __init__ call
# 2002-11-20 fl   robustification (from Kevin Cazabon, Dmitry Vasiliev)
# 2003-04-22 fl   more robustification (from Graham Dumpleton)
#
# Copyright (c) 1997-2003 by Secret Labs AB.
# Copyright (c) 1997-2003 by Fredrik Lundh.
#
# See the README file for information on usage and redistribution.
#

 
Modules
       
FontFile
Image
string

 
Classes
       
FontFile.FontFile
BdfFontFile

 
class BdfFontFile(FontFile.FontFile)
     Methods defined here:
__init__(self, fp)

Methods inherited from FontFile.FontFile:
__getitem__(self, ix)
compile(self)
Create metrics and bitmap
save = save1(self, filename)
Save font in version 1 format
save1(self, filename)
Save font in version 1 format
save2(self, filename)
Save font in version 2 format

Data and other attributes inherited from FontFile.FontFile:
bitmap = None

 
Functions
       
bdf_char(f)

 
Data
        bdf_slant = {'I': 'Italic', 'O': 'Oblique', 'OT': 'Other', 'R': 'Roman', 'RI': 'Reverse Italic', 'RO': 'Reverse Oblique'}
bdf_spacing = {'C': 'Cell', 'M': 'Monospaced', 'P': 'Proportional'}