~edwin-grubbs/python-imaging/trunk

« back to all changes in this revision

Viewing changes to Scripts/bdf2pil.py

  • Committer: effbot
  • Date: 2006-03-01 19:11:48 UTC
  • Revision ID: svn-v4:be285980-f00d-0410-a9fe-d4747b46ecd0:pil:18
Load Imaging-1.1.3 into pil.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /usr/local/bin/python
2
2
#
3
 
# $Id: bdf2pil.py,v 1.1 1996/12/16 18:51:31 fl Exp $
 
3
# $Id: //modules/pil/Scripts/bdf2pil.py#2 $
4
4
#
5
5
# File:
6
6
#       bdf2pil.py -- font compiler for X bitmap distribution files
212
212
            metrics[id] = (x, y, x0, ascent-y1, x1, ascent-y0) + srcbbox[id]
213
213
        fp = open(os.path.splitext(file)[0] + ".pil", "wb")
214
214
        fp.write("PILfont\n")
215
 
        fp.write("%s\n" % fontname) 
 
215
        fp.write("%s\n" % fontname)
216
216
        fp.write("DATA\n")
217
217
        for id in range(256):
218
218
            try: