#!@abs_top_builddir@/fontforgeexe/fontforge
#Needs: fonts/Hinting.sfd

#Check that AutoHint does what it should
#Check that generating type1/2 retain those hints

Open("@abs_srcdir@/fonts/Hinting.sfd")
Reencode("Original")
SelectAll()
Copy()
AutoHint()
CompareGlyphs(-1,-1,-1,-1,1)

Generate("@abs_builddir@/results/Hinting.cff")
Open("@abs_builddir@/results/Hinting.cff")
Reencode("Original")
SelectAll()
CompareGlyphs(-1,-1,-1,-1,1)

Generate("@abs_builddir@/results/Hinting.pfb")
Open("@abs_builddir@/results/Hinting.pfb")
Reencode("Original")
SelectAll()
CompareGlyphs(-1,-1,-1,-1,1)
