1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:27:45 +00:00

LibPDF: Account for other endings of PS1 Encoding array

This commit is contained in:
Rodrigo Tobar 2023-02-06 00:46:51 +08:00 committed by Andreas Kling
parent a533ea7ae6
commit 82bd854d6f

View file

@ -140,7 +140,7 @@ PDFErrorOr<Vector<ByteBuffer>> PS1FontProgram::parse_subroutines(Reader& reader)
} else { } else {
array[index] = TRY(ByteBuffer::copy(entry.bytes())); array[index] = TRY(ByteBuffer::copy(entry.bytes()));
} }
} else if (word == "index") { } else if (word == "index" || word == "def" || word == "ND") {
break; break;
} }
} }