Skip to content

Commit 6f78b65

Browse files
committed
Update glyph name calculation for code 0 in Type1 font program
1 parent 4f3b4eb commit 6f78b65

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/verapdf/pd/font/type1/Type1FontProgram.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ private void initializeEncoding() {
317317

318318
@Override
319319
public String getGlyphName(int code) {
320-
if (code > 0 && code < encoding.length) {
320+
if (code >= 0 && code < encoding.length) {
321321
return encoding[code];
322322
} else {
323323
return null;

0 commit comments

Comments
 (0)