From cf30a9b628f6cb0550fc41172117a96fa464b4f7 Mon Sep 17 00:00:00 2001 From: Maxim Date: Tue, 5 Nov 2024 18:43:18 +0300 Subject: [PATCH] Update notdef glyph name --- .../verapdf/gf/model/impl/operator/textshow/GFGlyph.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/validation-model/src/main/java/org/verapdf/gf/model/impl/operator/textshow/GFGlyph.java b/validation-model/src/main/java/org/verapdf/gf/model/impl/operator/textshow/GFGlyph.java index 906da3378..101e74acf 100644 --- a/validation-model/src/main/java/org/verapdf/gf/model/impl/operator/textshow/GFGlyph.java +++ b/validation-model/src/main/java/org/verapdf/gf/model/impl/operator/textshow/GFGlyph.java @@ -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);