#!/usr/bin/fontforge i=1 Open($argv[i], 1) #Use gen_flags=Defualt fmflags value as -1 gen_flags = -1 Generate("" + $fontname + ".ttf", "", gen_flags) Generate("" + $fontname + ".otf", "", gen_flags) PrintSetup (5) PrintFont (0, 0, "", $fontname + "-sample.pdf")