public static void main ( String [ ] args ) { try { TTFFile ttfFile = new TTFFile ( ) ; FontFileReader reader = new FontFileReader ( args [ 0 ] ) ; String name = null ; if ( args . length >= 2 ) { name = args [ 1 ] ; } ttfFile . readFont ( reader , name ) ; ttfFile . printStuff ( ) ; } catch ( IOException ioe ) { System . err . println ( "Problem reading font: " + ioe . toString ( ) ) ; ioe . printStackTrace ( System . err ) ; } }
Static main method to get info about a TrueType font .