Skip to content

Take into account all rotations before comparing glyph positions #14500

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
Jan 26, 2022

Conversation

calixteman
Copy link
Contributor

@calixteman
Copy link
Contributor Author

/botio test

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/4ac81dfca19b6a0/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

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

Total script time: 23.30 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  different ref/snapshot: 25

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/4ac81dfca19b6a0/output.txt

Total script time: 41.19 mins

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

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

 - it aims to fix mozilla#14497;
 - previously, only rotations with an angle 0, 90, 180 or 270 were taken into account;
 - so generalize to any angle but keep the fast path for 0, 90, ... because they're likely more common than anything else.
@calixteman
Copy link
Contributor Author

/botio test

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/06fbb3698d9acd6/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/696341842f6c98d/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/696341842f6c98d/output.txt

Total script time: 23.38 mins

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

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/06fbb3698d9acd6/output.txt

Total script time: 41.37 mins

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

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

Copy link
Collaborator

@Snuffleupagus Snuffleupagus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks much better now, thank you!

@Snuffleupagus Snuffleupagus merged commit a69adf0 into mozilla:master Jan 26, 2022
@Snuffleupagus
Copy link
Collaborator

/botio makeref

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/26df0dd6721f0d9/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

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

Total script time: 20.63 mins

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/26df0dd6721f0d9/output.txt

Total script time: 37.79 mins

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

quaoaris added a commit to quaoaris/pdf.js that referenced this pull request Jan 26, 2022
commit a69adf0
Merge: 5c3b245 3a7004c
Author: Jonas Jenwald <[email protected]>
Date:   Wed Jan 26 18:04:57 2022 +0100

    Merge pull request mozilla#14500 from calixteman/14497

    Take into account all rotations before comparing glyph positions

commit 3a7004c
Author: Calixte Denizet <[email protected]>
Date:   Wed Jan 26 15:35:46 2022 +0100

    Take into account all rotations before comparing glyph positions
     - it aims to fix mozilla#14497;
     - previously, only rotations with an angle 0, 90, 180 or 270 were taken into account;
     - so generalize to any angle but keep the fast path for 0, 90, ... because they're likely more common than anything else.
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.

getTextContent Returns wrong text (with spaces removed)
3 participants