t1strip: access writet1 (from pdftex) for t1 font handling (including stripping)
[PyX/mjg.git] / pyx / t1strip / test_t1strip.py
blobfa14a09f963d71be5d5677bb4b0329c967bf1b47
1 #!/usr/bin/env python
3 from t1strip import t1strip
5 glyphs = [0] * 256
6 for c in "Hello World":
7 glyphs[ord(c)] = 1
9 outfile = open("cmr10.part.pfa", "w")
10 t1strip(outfile, "cmr10.pfb", glyphs)
11 outfile.close()