mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Merge pull request #18156 from calixteman/bug1882613
[GeckoView] Don't use the system fonts (bug 1882613)
This commit is contained in:
commit
18a7bd60f7
1 changed files with 10 additions and 0 deletions
10
web/app.js
10
web/app.js
|
@ -1004,6 +1004,16 @@ const PDFViewerApplication = {
|
||||||
AppOptions.set("docBaseUrl", this.baseUrl);
|
AppOptions.set("docBaseUrl", this.baseUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// On Android, there is almost no chance to have the font we want so we
|
||||||
|
// don't use the system fonts in this case.
|
||||||
|
if (
|
||||||
|
typeof PDFJSDev === "undefined"
|
||||||
|
? window.isGECKOVIEW
|
||||||
|
: PDFJSDev.test("GECKOVIEW")
|
||||||
|
) {
|
||||||
|
args.useSystemFonts = false;
|
||||||
|
}
|
||||||
|
|
||||||
// Set the necessary API parameters, using all the available options.
|
// Set the necessary API parameters, using all the available options.
|
||||||
const apiParams = AppOptions.getAll(OptionKind.API);
|
const apiParams = AppOptions.getAll(OptionKind.API);
|
||||||
const loadingTask = getDocument({
|
const loadingTask = getDocument({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue