-
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
[api-minor] Use a local font or fallback on an embedded one (if it exists) for non-embedded fonts (bug 1766039) #16363
Conversation
calixteman
commented
Apr 27, 2023
•
edited
Loading
edited
- Replace FoxitSans with LiberationSans: LiberationSans is already there (for XFA) and we can use it as a good replacement of FoxitSans.
- For now we just try to substitue standard fonts, the strategy is the following:
- we try to find a font locally from a hardcoded list;
- if it fails then we use Liberation as fallback (only for Helvetica for the moment);
- else we just fallback on the system serif/sansserif/monospace font.
a7a374a
to
77c91a2
Compare
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.
I'd really like us to create a new release before moving forward with this patch (or any other standard-font data related ones).
264ed84
to
1a39776
Compare
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/8975d4be50a3ce2/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/6bad623dc1f914a/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/8975d4be50a3ce2/output.txt Total script time: 27.31 mins
Image differences available at: http://54.241.84.105:8877/8975d4be50a3ce2/reftest-analyzer.html#web=eq.log |
I've not looked at all of the changes, however one thing that immediately jumped out at me is the movement in the following test-cases: pdf.js/test/test_manifest.json Lines 2895 to 2909 in 4931f29
Given that they explicitly set Edit: Oh, is this perhaps because we've changed from Foxit to LiberationSans fonts? |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/6bad623dc1f914a/output.txt Total script time: 34.30 mins
Image differences available at: http://54.193.163.58:8877/6bad623dc1f914a/reftest-analyzer.html#web=eq.log |
Another quick find: Looking at e.g. the |
Interesting case. |
Yep exactly. |
ee9da13
to
dffca91
Compare
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/bfdc24e68795d89/output.txt Total script time: 34.24 mins
Image differences available at: http://54.193.163.58:8877/bfdc24e68795d89/reftest-analyzer.html#web=eq.log |
Looking at the Windows results in #16363 (comment), there seem to be a couple of regressions:
|
b38bf2f
to
a75e220
Compare
I used
Side effects of wrong copy/paste in |
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/beebf6b8d68adac/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/0c94ab1284955a5/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/beebf6b8d68adac/output.txt Total script time: 27.78 mins
Image differences available at: http://54.241.84.105:8877/beebf6b8d68adac/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/0c94ab1284955a5/output.txt Total script time: 35.39 mins
Image differences available at: http://54.193.163.58:8877/0c94ab1284955a5/reftest-analyzer.html#web=eq.log |
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.
Nit: Please fix the typo in the commit message, i.e. replace [api-mninor]
-> [api-minor]
Given the huge amount of movement on the Linux-bot I've not really looked in detail at the results, however the test results look reasonable on the Windows-bot so let's do this :-)
r=me, thank you!
I almost looked at all the tests on linux and I didn't notice something really wrong: just few movements because the new used fonts. |
…ists) for non-embedded fonts (bug 1766039) - Replace FoxitSans with LiberationSans: LiberationSans is already there (for XFA) and we can use it as a good replacement of FoxitSans. - For now we just try to substitue standard fonts, the strategy is the following: * we try to find a font locally from a hardcoded list; * if it fails then we use Liberation as fallback (only for Helvetica for the moment); * else we just fallback on the system serif/sansserif/monospace font.
a75e220
to
53134c0
Compare
/botio makeref |
From: Bot.io (Windows)ReceivedCommand cmd_makeref from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/e120d724016526c/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_makeref from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/bda3bd24f15b2e2/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/bda3bd24f15b2e2/output.txt Total script time: 23.92 mins
|
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/e120d724016526c/output.txt Total script time: 24.00 mins
|
/botio-windows makeref |
From: Bot.io (Windows)ReceivedCommand cmd_makeref from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/7ee5ee4faedd3b7/output.txt |
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/7ee5ee4faedd3b7/output.txt Total script time: 23.86 mins
|
This change regressed font rendering for some PDF files: https://bugzilla.mozilla.org/show_bug.cgi?id=1845551 |
This PR is closed now and there is no need to have the same discussion in different places (bugzilla, github, ...) |