TTFFile ttf = reader.loadTTF(fontFile, null);
if (ttf == null) {
throw new IOException("Unable to load TTF file: " + fontFile);
}
Document doc = reader.constructFontXML(ttf, null, null, null, null, !ansi, null);
if (doc == null) {
throw new IOException("Unable to construct font XML file");
}
try {