-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Add some unicode mapping for ligatures when writing the cmap table in the font (bug 1946181) #19427
Conversation
… the font (bug 1946181)
Can we add some kind of test-case for this, to avoid it regressing? |
In thinking about that this morning, I wasn't able to have an idea. |
Yes, there's a few tests in https://github.com/mozilla/pdf.js/tree/master/test/font |
I've tried to write a test but I didn't manage to and I don't really have time for the moment. |
/botio browsertest |
From: Bot.io (Windows)ReceivedCommand cmd_browsertest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/d799316d3ceb4ea/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_browsertest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/2d7bf952384bd95/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/2d7bf952384bd95/output.txt Total script time: 17.15 mins
Image differences available at: http://54.241.84.105:8877/2d7bf952384bd95/reftest-analyzer.html#web=eq.log |
As far as I can tell we see the same kind of "errors" with saw when we added this unicode mapping in the font (iirc, the linux font renderer makes some adjustments based on the unicode value associated with a glyph). |
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/d799316d3ceb4ea/output.txt Total script time: 30.66 mins
|
When we started moving all glyphs to a Private Use Area it was to prevent issues with particularly FreeType on Linux affecting glyph-shaping if we left glyphs at more "normal" positions in the cmap table. With this patch we seem to be essentially regressing that, which might be problematical!? |
It was the same thing in #15157. The diffs in the ref tests (at least for the one I checked) only appear for ligatures and the variation are very small. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's try this, while keeping an eye on any future Linux-only font bugs.
r=me, thank you.
/botio-linux makeref |
From: Bot.io (Linux m4)ReceivedCommand cmd_makeref from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/d0a49b3cd1ad185/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/d0a49b3cd1ad185/output.txt Total script time: 16.77 mins
|
No description provided.