static String getFontName ( String filePath ) { TTFRandomAccessFile in = null ; try { RandomAccessFile file = new RandomAccessFile ( filePath , "r" ) ; in = new TTFRandomAccessFile ( file ) ; return getTTFFontName ( in , filePath ) ; } catch ( IOException e ) { return null ; // Missing permissions or corrupted font file? } finally { IOUtils . closeQuietly ( in ) ; } }
Retrieve the file name for a system font .