Skip to content
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

Disable system fonts on Android (issue 18210) #18465

Merged
merged 2 commits into from
Jul 21, 2024

Conversation

Snuffleupagus
Copy link
Collaborator

To avoid introducing any inline "hacks" in the viewer-code this meant adding useSystemFonts to the AppOptions, which thus required some new functionality since the default value should be undefined given how the option is handled in the API; note this code.

Finally, also moves the definition of the development-mode window.isGECKOVIEW property to the HTML file such that it's guaranteed to be set regardless of how and when it's accessed.

@Snuffleupagus Snuffleupagus force-pushed the issue-18210 branch 3 times, most recently from 7de8c7c to 9cc7616 Compare July 20, 2024 17:58
@Snuffleupagus Snuffleupagus linked an issue Jul 20, 2024 that may be closed by this pull request
@Snuffleupagus Snuffleupagus marked this pull request as ready for review July 20, 2024 17:58
@Snuffleupagus
Copy link
Collaborator Author

/botio integrationtest

Besides being slightly shorter, this should help reduce the risk of confusion given the very similar global Object/Map names.
To avoid introducing any inline "hacks" in the viewer-code this meant adding `useSystemFonts` to the AppOptions, which thus required some new functionality since the default value should be `undefined` given how the option is handled in the API; note [this code](https://github.com/mozilla/pdf.js/blob/ed83d7c5e16798a56c493d56aaa8200dd280bb17/src/display/api.js#L298-L301).

Finally, also moves the definition of the development-mode `window.isGECKOVIEW` property to the HTML file such that it's guaranteed to be set regardless of how and when it's accessed.
@Snuffleupagus
Copy link
Collaborator Author

/botio unittest

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_unittest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.241.84.105:8877/9b43cebdb0c5fc1/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

Command cmd_unittest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.193.163.58:8877/5202ef0e8697165/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/9b43cebdb0c5fc1/output.txt

Total script time: 2.50 mins

  • Unit Tests: Passed

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/5202ef0e8697165/output.txt

Total script time: 7.63 mins

  • Unit Tests: Passed

@Snuffleupagus
Copy link
Collaborator Author

/botio integrationtest

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_integrationtest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.241.84.105:8877/9592c2f1e9c812b/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

Command cmd_integrationtest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.193.163.58:8877/758af2cad22909b/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/9592c2f1e9c812b/output.txt

Total script time: 8.55 mins

  • Integration Tests: Passed

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/758af2cad22909b/output.txt

Total script time: 19.40 mins

  • Integration Tests: Passed

@Snuffleupagus Snuffleupagus marked this pull request as ready for review July 21, 2024 14:03
@timvandermeij timvandermeij merged commit 0c34efb into mozilla:master Jul 21, 2024
7 checks passed
@timvandermeij
Copy link
Contributor

Thank you for fixing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Font and glyph spacing on Android differ from desktop
3 participants