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

Fix glyph at index zero in CIDFontType2 that has a CIDToGIDMap stream #10794

Merged
merged 1 commit into from
May 14, 2019

Conversation

janpe2
Copy link
Contributor

@janpe2 janpe2 commented May 7, 2019

Fixes #10519

See the description of the problem in #10519 (comment)

@Snuffleupagus Thank you for the idea (#10519 (comment)) to use ToUnicode in deciding when glyph index zero is necessary or not.

I also found out that when the glyph index zero is duplicated, we must set its left sidebearing (LSB) in the hmtx table. Currently just zeros are appended as LSB values, which makes the glyph positioned too far to the left. Because of this change in core/fonts.js some characters move also in regression test "issue3427". Now the glyphs are actually in correct positions. (See 'C' in the bold font and 'P' in the regular font in "issue3427".)

@Snuffleupagus
Copy link
Collaborator

/botio test

@pdfjsbot
Copy link

pdfjsbot commented May 7, 2019

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/55bd504b0115565/output.txt

@pdfjsbot
Copy link

pdfjsbot commented May 7, 2019

From: Bot.io (Windows)


Received

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

Live output at: http://54.215.176.217:8877/623e0ac426ccd01/output.txt

@pdfjsbot
Copy link

pdfjsbot commented May 7, 2019

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/55bd504b0115565/output.txt

Total script time: 17.74 mins

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

Image differences available at: http://54.67.70.0:8877/55bd504b0115565/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

pdfjsbot commented May 7, 2019

From: Bot.io (Windows)


Failed

Full output at http://54.215.176.217:8877/623e0ac426ccd01/output.txt

Total script time: 25.68 mins

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

Image differences available at: http://54.215.176.217:8877/623e0ac426ccd01/reftest-analyzer.html#web=eq.log

@timvandermeij
Copy link
Contributor

/botio makeref

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://54.215.176.217:8877/5413f1343d4ce07/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/cc3648bb4778c87/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/cc3648bb4778c87/output.txt

Total script time: 16.29 mins

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/5413f1343d4ce07/output.txt

Total script time: 23.19 mins

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

@timvandermeij timvandermeij merged commit c8c937c into mozilla:master May 14, 2019
@timvandermeij
Copy link
Contributor

Thank you!

@mozilla mozilla deleted a comment May 20, 2019
@janpe2 janpe2 deleted the cidtogidmap-zero branch March 10, 2020 16:56
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.

Missing letters
5 participants