mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-04 15:09:40 +00:00
LibPDF: Account for other endings of PS1 Encoding array
This commit is contained in:
parent
a533ea7ae6
commit
82bd854d6f
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue