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

For embedded Type1 fonts without included ToUnicode/Encoding data, attempt to improve text selection by using the builtInEncoding to amend the toUnicode map (issue 6901, issue 7182, issue 7217, bug 917796, bug 1242142) #7550

Merged
merged 1 commit into from
Sep 16, 2016

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented Aug 17, 2016

Note that in order to prevent any possible issues, this patch does not try to amend the toUnicode data for Type1 fonts that contain either ToUnicode or Encoding entries in the font dictionary.

Fixes, or at least improves, issues/bugs such as e.g. #6658, #6901, #7182, #7217, bug 917796, bug 1242142.

@Snuffleupagus Snuffleupagus changed the title [WIP] For embedded Type1 fonts without included ToUnicode data, attempt to improve text selection by using the builtInEncoding to amend the toUnicode map For embedded Type1 fonts without included ToUnicode data, attempt to improve text selection by using the builtInEncoding to amend the toUnicode map Aug 18, 2016
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@Snuffleupagus
Copy link
Collaborator Author

/botio test

@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@Snuffleupagus
Copy link
Collaborator Author

/botio test

@Snuffleupagus Snuffleupagus changed the title For embedded Type1 fonts without included ToUnicode data, attempt to improve text selection by using the builtInEncoding to amend the toUnicode map For embedded Type1 fonts without included ToUnicode/Encoding data, attempt to improve text selection by using the builtInEncoding to amend the toUnicode map Aug 21, 2016
@Snuffleupagus Snuffleupagus changed the title For embedded Type1 fonts without included ToUnicode/Encoding data, attempt to improve text selection by using the builtInEncoding to amend the toUnicode map For embedded Type1 fonts without included ToUnicode/Encoding data, attempt to improve text selection by using the builtInEncoding to amend the toUnicode map (issue 6901, issue 7182, issue 7217, bug 917796, bug 1242142) Aug 22, 2016
@Snuffleupagus
Copy link
Collaborator Author

/botio test

…, attempt to improve text selection by using the `builtInEncoding` to amend the `toUnicode` map (issue 6901, issue 7182, issue 7217, bug 917796, bug 1242142)

Note that in order to prevent any possible issues, this patch does *not* try to amend the `toUnicode` data for Type1 fonts that contain either `ToUnicode` or `Encoding` entries in the font dictionary.

Fixes, or at least improves, issues/bugs such as e.g. 6658, 6901, 7182, 7217, bug 917796, bug 1242142.
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/869e65ff356723d/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/7fc9faef00f3671/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://107.22.172.223:8877/869e65ff356723d/output.txt

Total script time: 24.15 mins

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

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

@pdfjsbot
Copy link

From: Bot.io (Linux)


Failed

Full output at http://107.21.233.14:8877/7fc9faef00f3671/output.txt

Total script time: 38.38 mins

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

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

@timvandermeij
Copy link
Contributor

timvandermeij commented Sep 11, 2016

Looks good to me. The code is actually quite understandable even though I'm not too familiar with the font code. It's really nice to notice that the tests now cover this well and show clear improvements. It's a good issue closer, so nice work!

/cc @brendandahl or @yurydelendik for review

@brendandahl
Copy link
Contributor

/botio makeref

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

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

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/27efc522ab2527d/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/27efc522ab2527d/output.txt

Total script time: 24.37 mins

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

@pdfjsbot
Copy link

From: Bot.io (Linux)


Success

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

Total script time: 37.73 mins

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

@Snuffleupagus
Copy link
Collaborator Author

@brendandahl Thank you for the review!

@Snuffleupagus Snuffleupagus merged commit 4acd31f into mozilla:master Sep 16, 2016
@Snuffleupagus Snuffleupagus deleted the Type1-toUnicode-builtInEncoding-fallback branch September 16, 2016 15:53
movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
…iltInEncoding-fallback

For embedded Type1 fonts without included `ToUnicode`/`Encoding` data, attempt to improve text selection by using the `builtInEncoding` to amend the `toUnicode` map (issue 6901, issue 7182, issue 7217, bug 917796, bug 1242142)
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.

4 participants