#!/usr/local/bin/fontforge

if ($argc < 2)
  Print("Error!");
else
  File=$argv[1];
  Print("converting ", File, "...");
  Open(File);

  # Remove Overlaps
  SelectAll();
  Simplify();
  SelectNone();

  # Do not round coordinates (0x200000 set to 0)
  Generate($fontname+".pfb","",0);
endif
