Skip to content

Commit

Permalink
Fixes #324 - Log invalid font.
Browse files Browse the repository at this point in the history
  • Loading branch information
danfickle committed Feb 13, 2019
1 parent 13b4e3b commit 99f99cc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ public PDFont supply() {
try {
return PDType0Font.load(_doc, _fontFile);
} catch (IOException e) {
return null;
XRLog.exception("Couldn't load font (" + _fontFile.getAbsolutePath() + "). Please check that it is a valid truetype font.", e);
return null;
}
}
}
Expand Down

0 comments on commit 99f99cc

Please sign in to comment.