From 82bd854d6f2b102a989f8726271f49fcdc616d98 Mon Sep 17 00:00:00 2001 From: Rodrigo Tobar Date: Mon, 6 Feb 2023 00:46:51 +0800 Subject: [PATCH] LibPDF: Account for other endings of PS1 Encoding array --- Userland/Libraries/LibPDF/Fonts/PS1FontProgram.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }