diff --git a/Userland/Libraries/LibPDF/Fonts/PS1FontProgram.cpp b/Userland/Libraries/LibPDF/Fonts/PS1FontProgram.cpp index 534ccdd77a..b7a813a8a3 100644 --- a/Userland/Libraries/LibPDF/Fonts/PS1FontProgram.cpp +++ b/Userland/Libraries/LibPDF/Fonts/PS1FontProgram.cpp @@ -140,7 +140,7 @@ PDFErrorOr> PS1FontProgram::parse_subroutines(Reader& reader) } else { array[index] = TRY(ByteBuffer::copy(entry.bytes())); } - } else if (word == "index") { + } else if (word == "index" || word == "def" || word == "ND") { break; } }