diff options
author | Rodrigo Tobar <rtobarc@gmail.com> | 2023-02-06 00:46:51 +0800 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-02-08 19:47:15 +0100 |
commit | 82bd854d6f2b102a989f8726271f49fcdc616d98 (patch) | |
tree | ed9223cff1525578666a35998f3052dd3ee197a7 /Userland | |
parent | a533ea7ae694a0e72be05e5ce63a6098613a3852 (diff) | |
download | serenity-82bd854d6f2b102a989f8726271f49fcdc616d98.zip |
LibPDF: Account for other endings of PS1 Encoding array
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibPDF/Fonts/PS1FontProgram.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<Vector<ByteBuffer>> 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; } } |