2
# The Python Imaging Library
5
# PIL raster font compiler
8
# 1997-08-25 fl created
9
# 2002-03-10 fl use "from PIL import"
18
from PIL import BdfFontFile
19
from PIL import PcfFontFile
21
if len(sys.argv) <= 1:
22
print "PILFONT", VERSION, "-- PIL font compiler."
24
print "Usage: pilfont fontfiles..."
26
print "Convert given font files to the PIL raster font format."
27
print "This version of pilfont supports X BDF and PCF fonts."
31
for f in sys.argv[1:]:
32
files = files + glob.glob(f)
43
p = PcfFontFile.PcfFontFile(fp)
46
p = BdfFontFile.BdfFontFile(fp)
50
except (SyntaxError, IOError):