#!/usr/local/bin/fontforge
#Needs: fonts/AddExtremumTest.sfd

#Check that AddExtrema doesn't distort the curve (by much).

Open("fonts/AddExtremumTest.sfd")
Reencode("Original")
SelectAll()
Copy()
AddExtrema()
CompareGlyphs(-1,3)
CompareGlyphs()

Copy()
Simplify()
CompareGlyphs(-1,3)
