public static void main(String args[]) { if (args.length != 1) { System.out.println("Need the name of a cff font."); System.exit(0); } JFrame jf = new JFrame("Font test: " + args[0]); try { FileInputStream fis = new FileInputStream(args[0]); TestType1CFont panel = new TestType1CFont(fis); jf.getContentPane().add(panel); jf.pack(); jf.setVisible(true); panel.requestFocus(); } catch (IOException ioe) { } }