]> git.donarmstrong.com Git - lilypond.git/blobdiff - buildscripts/ps-to-pfa.py
''
[lilypond.git] / buildscripts / ps-to-pfa.py
old mode 100755 (executable)
new mode 100644 (file)
index ef3c94a..a1d80c1
@@ -13,7 +13,6 @@ version = '0.4'
 
 datadir = ''
 
-import find
 import os
 import sys
 import getopt
@@ -94,7 +93,7 @@ def header (f):
 /FontType 3 def                             %% Required elements of font
 /FontName /%s def""" % font_name)
        f.write (r"""
-/FontMatrix [.083 0 0 .083 0 0] def       %% why .83?
+/FontMatrix [.083 0 0 .083 0 0] def       %% 12 is default height: 1/12 = 0.083
 /FontBBox [-1000 -1000 1000 1000] def    %% does not seem to matter.
 /Encoding 256 array def                     %% Trivial encoding vector
 0 1 255 {Encoding exch /.notdef put} for
@@ -130,10 +129,10 @@ def characters (f):
        logfile.write ('[')
        
        files = []
-       import find                     # q
+       import glob
        suffixes = [".[0-9]", ".[0-9][0-9]",  ".[0-9][0-9][0-9]"]
        for suf in suffixes:
-               files = files + find.find (font_name + suf)
+               files = files + glob.glob(font_name + suf)
 
 
        # concat all files into charprocs.