Skip to content

[Bug]: Text shouldn't be cutted when the font is changing but with the same underlying font #20956

@calixteman

Description

@calixteman

Attach (recommended) or Link to PDF file

nutrition-rgo.pdf

Web browser and its version

Firefox nightly

Operating system and its version

Windows 11

PDF.js version

master

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

Yes

Is a browser extension

No

Steps to reproduce the problem

  1. Open the pdf
  2. Check the text layer: it contains a way too much spans

There a lot of font variations but the base font is almost always the same.

What is the expected behavior?

We should have less spans.

What went wrong?

We have too much spans

Link to a viewer

No response

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions