When sanitizing the prep table, there is an instruction `PUSHW` and we push an unsigned number on the stack: https://github.com/mozilla/pdf.js/blob/19151feb5f855d2afcfecba16fde6ac582f5662d/src/core/fonts.js#L2390 But according to the output of `ttx` and the ttf doc: https://learn.microsoft.com/en-us/typography/opentype/spec/tt_instructions#push-words we must push an unsigned integer.
Bug 1919513 Comment 12 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
When sanitizing the prep table, there is an instruction `PUSHW` and we push an unsigned number on the stack: https://github.com/mozilla/pdf.js/blob/19151feb5f855d2afcfecba16fde6ac582f5662d/src/core/fonts.js#L2390 But according to the output of `ttx` and the ttf doc: https://learn.microsoft.com/en-us/typography/opentype/spec/tt_instructions#push-words we must push a signed integer.