-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Improve serif fallback font name matching #20224
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
Improve serif fallback font name matching #20224
Conversation
fe25257 to
44acabb
Compare
44acabb to
040fec1
Compare
|
@james-atticus the linter isn't happy: you can run it locally with |
040fec1 to
fe30d08
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/936b4c79caca1b1/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/9f860d71cc358d0/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/936b4c79caca1b1/output.txt Total script time: 37.22 mins
Image differences available at: http://54.241.84.105:8877/936b4c79caca1b1/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/9f860d71cc358d0/output.txt Total script time: 75.52 mins
Image differences available at: http://54.193.163.58:8877/9f860d71cc358d0/reftest-analyzer.html#web=eq.log |
fe30d08 to
ae8f8e4
Compare
calixteman
left a comment
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.
LGTM. Thank you.
|
/botio 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/f53846c4ac2c411/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_makeref from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/3580a0f17575509/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/f53846c4ac2c411/output.txt Total script time: 4.05 mins
|
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/3580a0f17575509/output.txt Total script time: 4.80 mins
|
Extends on #14064, which was added to fix #13845.
While the initial implementation worked for some font names,
getSerifFontsuses the mapped names, egTimes. If you have a font name such asAAAAAC+TimesNewRomanPSMT(as used in the added test) orTimesNewRomanPS-BoldMT(observed in other files), then the fallback serif logic wouldn't work. This PR changes the logic to be more similar tofallbackToSystemFontwhich maps the passed-in font name throughgetStdFontMap/getNonStdFontMap.Before:
After: