-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Conversation
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.67.70.0:8877/55bd504b0115565/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.215.176.217:8877/623e0ac426ccd01/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/55bd504b0115565/output.txt Total script time: 17.74 mins
Image differences available at: http://54.67.70.0:8877/55bd504b0115565/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.215.176.217:8877/623e0ac426ccd01/output.txt Total script time: 25.68 mins
Image differences available at: http://54.215.176.217:8877/623e0ac426ccd01/reftest-analyzer.html#web=eq.log |
/botio makeref |
From: Bot.io (Windows)ReceivedCommand cmd_makeref from @timvandermeij received. Current queue size: 0 Live output at: http://54.215.176.217:8877/5413f1343d4ce07/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_makeref from @timvandermeij received. Current queue size: 0 Live output at: http://54.67.70.0:8877/cc3648bb4778c87/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/cc3648bb4778c87/output.txt Total script time: 16.29 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.215.176.217:8877/5413f1343d4ce07/output.txt Total script time: 23.19 mins
|
Thank you! |
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 incore/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".)