-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Set ExpansionFactor to 0.06 when it's equals to 0 in the private dict of CFF fonts #15900
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a fascinating find, how did you figure it out?
r=me, with the comment addressed and passing tests; thank you!
I compared the original font I extracted from the pdf and the one we generate. |
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/64f2133afab6d67/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/30e862bdb952fee/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/64f2133afab6d67/output.txt Total script time: 26.10 mins
Image differences available at: http://54.241.84.105:8877/64f2133afab6d67/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/30e862bdb952fee/output.txt Total script time: 33.51 mins
Image differences available at: http://54.193.163.58:8877/30e862bdb952fee/reftest-analyzer.html#web=eq.log |
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/f3c7c518d8c2d65/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/2393a951c01ade6/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/f3c7c518d8c2d65/output.txt Total script time: 26.09 mins
Image differences available at: http://54.241.84.105:8877/f3c7c518d8c2d65/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/2393a951c01ade6/output.txt Total script time: 33.89 mins
Image differences available at: http://54.193.163.58:8877/2393a951c01ade6/reftest-analyzer.html#web=eq.log |
@Snuffleupagus instead of removing the property I set it to 0.06 to follow Jonathan's advice: #15289 (comment) |
Yes, since I do agree that it sounds like an even safer approach here. Given the amount of duplicates, we might want to uplift this to previous Firefox versions? As a follow-up to this PR, to prevent future bugs, I do wonder if we want to add similar code when parsing "regular" Type1 fonts as well or if we should perhaps wait until an actual bug is reported? pdf.js/src/core/type1_parser.js Line 657 in d6984f9
|
/botio makeref |
From: Bot.io (Linux m4)ReceivedCommand cmd_makeref from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/20f19d378bd4926/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_makeref from @calixteman received. Current queue size: 1 Live output at: http://54.193.163.58:8877/93d0a02e449a61f/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/20f19d378bd4926/output.txt Total script time: 21.90 mins
|
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/93d0a02e449a61f/output.txt Total script time: 25.09 mins
|
/botio-windows makeref |
From: Bot.io (Windows)ReceivedCommand cmd_makeref from @calixteman received. Current queue size: 1 Live output at: http://54.193.163.58:8877/77fb7dc33853a43/output.txt |
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/77fb7dc33853a43/output.txt Total script time: 25.58 mins
|
No description provided.