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 {
array[index] = TRY(ByteBuffer::copy(entry.bytes()));
}
} else if (word == "index") {
} else if (word == "index" || word == "def" || word == "ND") {
break;
}
}