Skip to content

Commit

Permalink
Update notdef glyph name
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed Nov 5, 2024
1 parent 45a8fa9 commit cf30a9b
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,7 @@ protected GFGlyph(PDFont font, int glyphCode, int renderingMode, String id,
this.name = null;
} else {
pr.parseFont();
if (glyphCode == 0 || !font.glyphIsPresent(glyphCode)) {
this.name = ".notdef";
} else {
this.name = null;
}
this.name = font.glyphIsPresent(glyphCode) ? null : ".notdef";
}
} catch (IOException e) {
LOGGER.log(Level.FINE, "Can't convert code to glyph", e);
Expand Down

0 comments on commit cf30a9b

Please sign in to comment.