-
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
[api-minor] Simplify the TextLayer.#getAscent
fallback (PR 12896 follow-up)
#19399
[api-minor] Simplify the TextLayer.#getAscent
fallback (PR 12896 follow-up)
#19399
Conversation
/botio browsertest |
From: Bot.io (Linux m4)ReceivedCommand cmd_browsertest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/21abf56c49c8210/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_browsertest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/7427d98c47c400b/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/21abf56c49c8210/output.txt Total script time: 16.99 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/7427d98c47c400b/output.txt Total script time: 30.19 mins
|
TextLayer.#getAscent
fallback (PR 12896 follow-up)TextLayer.#getAscent
fallback (PR 12896 follow-up)
…llow-up) At the time of PR 12896 the `fontBoundingBox{Ascent, Descent}` properties were not yet available by default in Fírefox, however that's no longer the case since Firefox 116; please see https://bugzilla.mozilla.org/show_bug.cgi?id=1801198. Hence this patch which replaces the "full" fallback with a warning and uses the `ascent`/`descent` values from the fonts in the PDF document (as we did previously). Obviously the TextLayer won't look as good in that case, but it's a simpler and shorter solution.
d8eaead
to
c8be02f
Compare
@calixteman Gentle ping, any opinions about this? |
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.
At the time of PR #12896 the
fontBoundingBox{Ascent, Descent}
properties were not yet available by default in Fírefox, however that's no longer the case since Firefox 116; please see https://bugzilla.mozilla.org/show_bug.cgi?id=1801198.Hence this patch which replaces the "full" fallback with a warning and uses the
ascent
/descent
values from the fonts in the PDF document (as we did previously). Obviously the TextLayer won't look as good in that case, but it's a simpler and shorter solution.