#Needs: fonts/Caliban.sfd fonts/Zapfino-4.0d3.dfont fonts/Zapfino-4.1d6.dfont

Open($1);
Print( "...Opened Caliban")
SelectAll()
AutoHint();
Print("...AutoHinted");
Save("Caliban.sfd");
Print("...Saved As");
Save("Caliban.sfdir");
Print("...Saved As dir");
Generate("Caliban.ps","bdf",-1);
Print( "...Generated type0")
Generate("Caliban.ttf","ms",2);
Print( "...Generated ttf w/ ms bitmaps")
Generate("Caliban.ttf","apple",-1);
Print( "...Generated ttf w/ apple bitmaps")
Generate("Caliban.otf","ms",-1);
Print( "...Generated otf w/ ms bitmaps")
Generate("Caliban.otf","ttf",0x80);
Print( "...Generated otf w/ both apple and ot modes set (& bitmaps)")
Generate("Caliban.dfont","sbit",-1);
Print( "...Generated sbit")
Generate("Caliban.","otb",-1);
Print( "...Generated X11 opentype bitmap")
Generate("Caliban.dfont","dfont",-1);
Print( "...Generated dfont w/ apple bitmaps")
SetFontOrder(2);
ClearTable("cvt ")
SelectAll()
AutoInstr();
Print("...AutoInstructed");
Generate("Caliban.ttf","apple",-1);
Print( "...Generated ttf w/ apple bitmaps (again) and instructions")
Close();

Open("Caliban.sfd");
Print( "...Read sfd")
Close();
Open("Caliban.sfdir");
Print( "...Read sfdir")
Close();
Open("Caliban.ps");
Print( "...Read type0 (if FontForge did not understand /CalibanBase, then that is ok)")
Close();
Open("Caliban.ttf");
Print( "...Read ttf")
Close();
Open("Caliban.otf");
Print( "...Read otf")
Close();
Open("Caliban.dfont");
Print( "...Read dfont")
Close();
Open("Caliban.otb");
Print( "...Read otb")
Close();
Open("Caliban-10.bdf");
Generate("Caliban.dfont","sbit",-1);
Print( "...Read bdf & Generated sbit")
Close();

New();
Save("foo.sfd");
Print( "...Saved new font")
Close();

Open($2);
Generate("Zapfino.ttf","",0x10);
Close()
#We used to get PointCount errors in the above.
Open("Zapfino.ttf")
Close()
Print( "...Handled Zapfino with control points at points")

Print( "This font has odd 'morx' tables, we just don't want to crash")
Open($3);
Generate("Zapfino.ttf","",0x10);
Close()

Quit()
