Skip to content

[Bug]: Text not shown, as browser.display.use_document_fonts is set to 0 #20065

Open
@2000tabs

Description

@2000tabs

Attach (recommended) or Link to PDF file

https://www.jma.go.jp/jma/press/2507/04a/20250704_asosan.pdf

Web browser and its version

Firefox 140.0.4 (64bit)

Operating system and its version

Windows 10 (version 22H2) (64bit)

PDF.js version

v5.3.93

Is the bug present in the latest PDF.js version?

Yes

Is a browser extension

No

Steps to reproduce the problem

  1. Launch Firefox.
  2. Open about:config and change browser.display.use_document_fonts to 0.
  3. Open link of PDF file.

What is the expected behavior?

All texts are visible.

Image

What went wrong?

Some texts are hidden, only letter spaces are visible.

Image

Link to a viewer

No response

Additional context

Error message is here.

Web fonts are disabled: unable to use embedded PDF fonts. viewer.mjs:13745:17
分離された Cookie またはストレージアクセスが “https://www.jma.go.jp/jma/press/2507/04a/20250704_asosan.pdf” に提供されました。これはサードパーティのコンテキスト内で読み込まれ、動的状態分離が有効なためです。 pdf.mjs:10872:22
(In English, Isolated cookie or storage access was provided to “https://www.jma.go.jp/jma/press/2507/04a/20250704_asosan.pdf” because it is loaded within a third-party context and dynamic state isolation is enabled. pdf.mjs:10872:22)
PDF c8e728554e650f243ca1e325387ebd45 [1.4 JUST PDF 4 / -] (PDF.js: 5.2.183 [3f1ecc1ba]) viewer.mjs:14280:13
Warning: getPathGenerator - ignoring character: "Error: Requesting object that isn't resolved yet BIZUD�S�V�b�N_path_阿.". pdf.mjs:323:13
Warning: getPathGenerator - ignoring character: "Error: Requesting object that isn't resolved yet BIZUD�S�V�b�N_path_蘇.". pdf.mjs:323:13
Warning: getPathGenerator - ignoring character: "Error: Requesting object that isn't resolved yet BIZUD�S�V�b�N_path_山.". pdf.mjs:323:13
continued...

Continued are same mean messages, that fonts (example above "BIZUD�S�V�b�N"(mojibake)) and last letters (example above "阿","蘇","山") are different.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions