-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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 missing font, use a local font if it exists even if there's no standard substitution #16416
Conversation
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.
Given that we could now be passing an undefined standardFontName
to the getFontSubstitution
function, please update this part of the JSDoc to actually reflect that:
* @param {String} [standardFontName] The standard font name to use if the base
* font is not available.
r=me, with the above fixed and passing tests; thank you!
d1cc458
to
8611c48
Compare
/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/dd00bfe9c9ecbd7/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/76aa23f3a8d118e/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/dd00bfe9c9ecbd7/output.txt Total script time: 26.82 mins
Image differences available at: http://54.241.84.105:8877/dd00bfe9c9ecbd7/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/76aa23f3a8d118e/output.txt Total script time: 34.38 mins
Image differences available at: http://54.193.163.58:8877/76aa23f3a8d118e/reftest-analyzer.html#web=eq.log |
Potentially too much movement in ref-tests
Looking at the Windows bot, there's a few things that doesn't look like improvements:
|
Given some of the test "failures", should we perhaps pass in the font- |
Yep, the flags aren't available when |
8611c48
to
864c1bb
Compare
864c1bb
to
0092070
Compare
/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/19b5100eadcea02/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/2d31618adb8f135/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/2d31618adb8f135/output.txt Total script time: 22.57 mins
Image differences available at: http://54.241.84.105:8877/2d31618adb8f135/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/19b5100eadcea02/output.txt Total script time: 23.63 mins
Image differences available at: http://54.193.163.58:8877/19b5100eadcea02/reftest-analyzer.html#web=eq.log |
That looks better, however we still have some "problems" at least on the Windows bot:
|
f23fce6
to
74ea376
Compare
About |
/botio browsertest |
From: Bot.io (Windows)ReceivedCommand cmd_browsertest from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/e4169ec57242361/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_browsertest from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/fa8d0765b46d8d9/output.txt |
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/e4169ec57242361/output.txt Total script time: 3.16 mins
|
/botio-windows browsertest |
From: Bot.io (Windows)ReceivedCommand cmd_browsertest from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/7f4e35146d2dcba/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/fa8d0765b46d8d9/output.txt Total script time: 22.37 mins
Image differences available at: http://54.241.84.105:8877/fa8d0765b46d8d9/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/7f4e35146d2dcba/output.txt Total script time: 23.10 mins
Image differences available at: http://54.193.163.58:8877/7f4e35146d2dcba/reftest-analyzer.html#web=eq.log |
It seems that the ArialBlack has now regressed on Windows, see e.g. |
…andard substitution If the font foo is missing we just try lo load local(foo) and maybe we'll be lucky.
74ea376
to
d4b70ec
Compare
/botio browsertest |
From: Bot.io (Linux m4)ReceivedCommand cmd_browsertest from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/664d496ba2d319c/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_browsertest from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/f410110659e031b/output.txt |
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/f410110659e031b/output.txt Total script time: 3.64 mins
|
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/664d496ba2d319c/output.txt Total script time: 22.52 mins
Image differences available at: http://54.241.84.105:8877/664d496ba2d319c/reftest-analyzer.html#web=eq.log |
/botio-windows browsertest |
From: Bot.io (Windows)ReceivedCommand cmd_browsertest from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/d91f1c76faed2ea/output.txt |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/d91f1c76faed2ea/output.txt Total script time: 23.18 mins
Image differences available at: http://54.193.163.58:8877/d91f1c76faed2ea/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.
That seems to work, and improves Calibri fonts on Windows. (It's too bad that the getFontSubstitution
function becomes even more complex, but I suppose that cannot really be helped.)
r=me, thank you!
/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/cd637d4af7d1ad5/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/a9057b45bd5f9b4/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/a9057b45bd5f9b4/output.txt Total script time: 23.32 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/cd637d4af7d1ad5/output.txt Total script time: 24.78 mins
|
If the font foo is missing we just try lo load local(foo) and maybe we'll be lucky.