Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check that Type1C fonts does not actually contain OpenType font files (issue 7598) #7600

Merged
merged 1 commit into from
Sep 9, 2016
Merged

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented Sep 6, 2016

This patch is yet another instalment in the (never ending) series of patches for PDF files that specify completely incorrect Type/Subtype for its fonts. In this case Type1/Type1C, when in fact OpenType would have been correct.

Fixes #7598.

Edit: Perhaps marginally easier reviewing with https://github.com/mozilla/pdf.js/pull/7600/files?w=1.


This change is Reviewable

… (issue 7598)

This patch is yet another instalment in the (never ending) series of patches for PDF files that specify completely incorrect Type/Subtype for its fonts. In this case Type1/Type1C, when in fact OpenType would have been correct.

Fixes 7598.
@Snuffleupagus
Copy link
Collaborator Author

/botio-windows preview

@pdfjsbot
Copy link

pdfjsbot commented Sep 6, 2016

From: Bot.io (Windows)


Received

Command cmd_preview from @Snuffleupagus received. Current queue size: 0

Live output at: http://107.22.172.223:8877/06901e2cb3c8c7e/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Sep 6, 2016

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/06901e2cb3c8c7e/output.txt

Total script time: 1.78 mins

Published

@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Sep 6, 2016

From: Bot.io (Linux)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://107.21.233.14:8877/ac1846bffc14d36/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Sep 6, 2016

From: Bot.io (Windows)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://107.22.172.223:8877/2ee1c7816311798/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Sep 6, 2016

From: Bot.io (Windows)


Failed

Full output at http://107.22.172.223:8877/2ee1c7816311798/output.txt

Total script time: 23.54 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: FAILED

Image differences available at: http://107.22.172.223:8877/2ee1c7816311798/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

pdfjsbot commented Sep 6, 2016

From: Bot.io (Linux)


Failed

Full output at http://107.21.233.14:8877/ac1846bffc14d36/output.txt

Total script time: 38.32 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: FAILED

Image differences available at: http://107.21.233.14:8877/ac1846bffc14d36/reftest-analyzer.html#web=eq.log

@Snuffleupagus
Copy link
Collaborator Author

Snuffleupagus commented Sep 6, 2016

Given that this isn't the first, and probably won't be the last, time that we've had to adjust the Type/Subtype because the PDF generator lies, we might want to consider simply ignoring that information and always check the font file itself instead.

I've got a WIP patch that does this and, provided that it actually passes all tests locally, I'd be happy to submit that one as a follow-up after the current PR lands.

@yurydelendik
Copy link
Contributor

r+

@timvandermeij
Copy link
Contributor

/botio makeref

@pdfjsbot
Copy link

pdfjsbot commented Sep 9, 2016

From: Bot.io (Linux)


Received

Command cmd_makeref from @timvandermeij received. Current queue size: 0

Live output at: http://107.21.233.14:8877/5766a6ec66989f0/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Sep 9, 2016

From: Bot.io (Windows)


Received

Command cmd_makeref from @timvandermeij received. Current queue size: 0

Live output at: http://107.22.172.223:8877/b41da0eb8260f51/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Sep 9, 2016

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/b41da0eb8260f51/output.txt

Total script time: 24.49 mins

  • Lint: Passed
  • Make references: Passed
  • Check references: Passed

@pdfjsbot
Copy link

pdfjsbot commented Sep 9, 2016

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/5766a6ec66989f0/output.txt

Total script time: 36.39 mins

  • Lint: Passed
  • Make references: Passed
  • Check references: Passed

@timvandermeij timvandermeij merged commit b112f9f into mozilla:master Sep 9, 2016
@timvandermeij
Copy link
Contributor

Nice work!

@Snuffleupagus Snuffleupagus deleted the issue-7598 branch September 9, 2016 20:12
@timvandermeij
Copy link
Contributor

(Feel free to make a PR for the follow-up patch you mentioned if you think it helps to prevent further issues.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants