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

Mispelled isEvalSupported property at FontFaceObject() creation. #9008

Merged
merged 1 commit into from
Oct 7, 2017

Conversation

diegocr
Copy link
Contributor

@diegocr diegocr commented Oct 7, 2017

Hello,

While looking at the code for available options..i've found a typo when creating the FontFaceObject() instances, the provided isEvalSuported option should actually be isEvalSupported (note the extra p)

Not sure if that would be causing any real issue since there is a fallback logic, but anyway i thought you may want that fixed, fwiw it got introduced over two years ago on commit 1d12aed

Cheers.

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.

Really nice catch! Especially considering that the typo actually causes worse performance, since it prevents the fast-path in FontFaceObject.getPathGenerator from being used.

r=me, with passing tests.
Thank you for spotting, and fixing, this long-standing bug!

@Snuffleupagus
Copy link
Collaborator

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Oct 7, 2017

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/42d80a9a6b988a1/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Oct 7, 2017

From: Bot.io (Windows)


Received

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

Live output at: http://54.215.176.217:8877/14eddcf09c08fef/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Oct 7, 2017

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/42d80a9a6b988a1/output.txt

Total script time: 16.66 mins

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

@pdfjsbot
Copy link

pdfjsbot commented Oct 7, 2017

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/14eddcf09c08fef/output.txt

Total script time: 23.44 mins

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

@Snuffleupagus Snuffleupagus merged commit ab4d5be into mozilla:master Oct 7, 2017
@timvandermeij
Copy link
Contributor

Nice find!

@diegocr diegocr deleted the patch-1 branch October 9, 2017 14:21
movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
Mispelled isEvalSupported property at FontFaceObject() creation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants