make all parts of the manual compile again; parts of the manual are still out of...
[PyX/mjg.git] / pyx / t1strip / __init__.py
blobe31f7bc8f4221eb3485bd1ba2af692f6057f55fb
1 try:
2 import _t1strip
3 t1strip = _t1strip.t1strip
4 except:
5 import os, tempfile
6 def t1strip(file, pfbfilename, glyphs, encname=None):
7 tmpfilename = tempfile.mktemp(suffix=".pfa")
8 os.system("pfb2pfa %s %s" % (pfbfilename, tmpfilename))
9 pfa = open(tmpfilename, "r")
10 file.write(pfa.read())
11 pfa.close()
12 os.unlink(tmpfilename)