Skip to content

Take the /CIDToGIDMap data into account when computing the hash, in PartialEvaluator.preEvaluateFont, for composite fonts (bug 1734802) #14111

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

Merged
merged 1 commit into from
Oct 9, 2021

Conversation

Snuffleupagus
Copy link
Collaborator

This is unfortunately yet another bug in the preEvaluateFont-implementation, and I've lost count of the number of times I've had to tweak this code over the years :-(
I really cannot help thinking that PR #4423 was way too simplistic, since it missed a bunch of cases that leads to broken font rendering in many PDF documents.

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1734802

…PartialEvaluator.preEvaluateFont`, for composite fonts (bug 1734802)

This is unfortunately *yet another* bug in the `preEvaluateFont`-implementation, and I've lost count of the number of times I've had to tweak this code over the years :-(
I really cannot help thinking that PR 4423 was way too simplistic, since it missed a bunch of cases that leads to broken font rendering in many PDF documents.

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1734802
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Oct 8, 2021

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/b627b93f9fa7740/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Oct 8, 2021

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/951bac97ff4a740/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Oct 8, 2021

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/b627b93f9fa7740/output.txt

Total script time: 23.96 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  different ref/snapshot: 11
  different first/second rendering: 1

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

@pdfjsbot
Copy link

pdfjsbot commented Oct 8, 2021

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/951bac97ff4a740/output.txt

Total script time: 41.01 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: FAILED
  • Regression tests: FAILED
  different ref/snapshot: 8
  different first/second rendering: 1

Image differences available at: http://54.193.163.58:8877/951bac97ff4a740/reftest-analyzer.html#web=eq.log

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Oct 9, 2021

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/bdc47b0d4f3ffac/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Oct 9, 2021

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/bdc47b0d4f3ffac/output.txt

Total script time: 4.26 mins

Published

@timvandermeij timvandermeij merged commit 63370ff into mozilla:master Oct 9, 2021
@timvandermeij
Copy link
Contributor

Thanks!

/botio makeref

@pdfjsbot
Copy link

pdfjsbot commented Oct 9, 2021

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/7d0969cfb43dfcd/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Oct 9, 2021

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/77746c93e359589/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Oct 9, 2021

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/7d0969cfb43dfcd/output.txt

Total script time: 20.12 mins

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

@pdfjsbot
Copy link

pdfjsbot commented Oct 9, 2021

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/77746c93e359589/output.txt

Total script time: 29.57 mins

  • Lint: Passed
  • Make references: FAILED

@Snuffleupagus
Copy link
Collaborator Author

/botio-windows makeref

@pdfjsbot
Copy link

pdfjsbot commented Oct 9, 2021

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/661d76dfdd726ab/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Oct 9, 2021

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/661d76dfdd726ab/output.txt

Total script time: 37.53 mins

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

@Snuffleupagus Snuffleupagus deleted the bug-1734802 branch October 9, 2021 13:45
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.

3 participants