#!@abs_top_builddir@/fontforgeexe/fontforge
#Needs: fonts/Zapfino-4.0d3.dfont

import os, shutil, tempfile, fontforge;

results = tempfile.mkdtemp('.tmp','fontforge-test-')

zapfino = fontforge.open(os.path.join("@abs_srcdir@", "fonts", "Zapfino-4.0d3.dfont"))
zapfino.generate(os.path.join(results, "Zapfino.ttf"),flags=("apple",))
zapfino.close()
#We used to get PointCount errors in the above.
zapfino = fontforge.open(os.path.join(results, "Zapfino.ttf"))
zapfino.close()
print "...Handled Zapfino with control points at points"

shutil.rmtree(results)
