| 1 | #Needs: fonts/Zapfino-4.0d3.dfont |
| 2 | |
| 3 | import os, sys, shutil, tempfile, fontforge |
| 4 | |
| 5 | results = tempfile.mkdtemp('.tmp','fontforge-test-') |
| 6 | |
| 7 | zapfino = fontforge.open(sys.argv[1]) |
| 8 | zapfino.generate(os.path.join(results, "Zapfino.ttf"),flags=("apple",)) |
| 9 | zapfino.close() |
| 10 | #We used to get PointCount errors in the above. |
| 11 | zapfino = fontforge.open(os.path.join(results, "Zapfino.ttf")) |
| 12 | zapfino.close() |
| 13 | print("...Handled Zapfino with control points at points") |
| 14 | |
| 15 | shutil.rmtree(results) |