RTEditor/src/main/java/com/onegravity/rteditor/fonts/TTFAnalyzer.java
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);
        }
    }
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.

@param filePath the full path for the font to retrieve.

@return The file name or null of none could be retrieved.