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

Misaligned text layer #16843

Closed
mrtcode opened this issue Aug 17, 2023 · 1 comment · Fixed by #17770
Closed

Misaligned text layer #16843

mrtcode opened this issue Aug 17, 2023 · 1 comment · Fixed by #17770

Comments

@mrtcode
Copy link

mrtcode commented Aug 17, 2023

Attach (recommended) or Link to PDF file here:
16_2020-044.pdf

Configuration:

  • Web browser and its version: Chrome, Safari, Firefox
  • Operating system and its version: macOS 13.4
  • PDF.js version: 3.10.86
  • Is a browser extension: no

What went wrong? (add screenshot)
Screenshot 2023-08-17 at 08 37 52

@PritamSarbajna

This comment was marked as off-topic.

Aditi-1400 added a commit to Aditi-1400/pdf.js that referenced this issue May 21, 2024
Fixes issue mozilla#16843.
In certain cases, the text layer was misaligned
due to a difference between the `lang` attribute
of the viewer and the canvas. This commit addresses
the problem by adding the `lang` attribute to the canvas.

The issue was caused because PDF.js uses serif/sans-serif
fonts to generate the text layer and relies on system fonts.
The difference in the `lang` attribute led to different fonts
being picked, causing the misalignment.
Aditi-1400 added a commit to Aditi-1400/pdf.js that referenced this issue May 21, 2024
Fixes issue mozilla#16843.
In certain cases, the text layer was misaligned
due to a difference between the `lang` attribute
of the viewer and the canvas. This commit addresses
the problem by adding the `lang` attribute to the canvas.

The issue was caused because PDF.js uses serif/sans-serif
fonts to generate the text layer and relies on system fonts.
The difference in the `lang` attribute led to different fonts
being picked, causing the misalignment.
Aditi-1400 added a commit to Aditi-1400/pdf.js that referenced this issue May 21, 2024
Fixes issue mozilla#16843.
In certain cases, the text layer was misaligned
due to a difference between the `lang` attribute
of the viewer and the canvas. This commit addresses
the problem by adding the `lang` attribute to the canvas.

The issue was caused because PDF.js uses serif/sans-serif
fonts to generate the text layer and relies on system fonts.
The difference in the `lang` attribute led to different fonts
being picked, causing the misalignment.
Aditi-1400 added a commit to Aditi-1400/pdf.js that referenced this issue May 21, 2024
Fixes issue mozilla#16843.
In certain cases, the text layer was misaligned
due to a difference between the `lang` attribute
of the viewer and the canvas. This commit addresses
the problem by adding the `lang` attribute to the canvas.

The issue was caused because PDF.js uses serif/sans-serif
fonts to generate the text layer and relies on system fonts.
The difference in the `lang` attribute led to different fonts
being picked, causing the misalignment.
Aditi-1400 added a commit to Aditi-1400/pdf.js that referenced this issue May 21, 2024
Fixes issue mozilla#16843.
In certain cases, the text layer was misaligned
due to a difference between the `lang` attribute
of the viewer and the canvas. This commit addresses
the problem by adding the `lang` attribute to the canvas.

The issue was caused because PDF.js uses serif/sans-serif
fonts to generate the text layer and relies on system fonts.
The difference in the `lang` attribute led to different fonts
being picked, causing the misalignment.
Aditi-1400 added a commit to Aditi-1400/pdf.js that referenced this issue May 21, 2024
Fixes issue mozilla#16843.
In certain cases, the text layer was misaligned
due to a difference between the `lang` attribute
of the viewer and the canvas. This commit addresses
the problem by adding the `lang` attribute to the canvas.

The issue was caused because PDF.js uses serif/sans-serif
fonts to generate the text layer and relies on system fonts.
The difference in the `lang` attribute led to different fonts
being picked, causing the misalignment.
Aditi-1400 added a commit to Aditi-1400/pdf.js that referenced this issue May 21, 2024
Fixes issue mozilla#16843.
In certain cases, the text layer was misaligned
due to a difference between the `lang` attribute
of the viewer and the canvas. This commit addresses
the problem by adding the `lang` attribute to the canvas.

The issue was caused because PDF.js uses serif/sans-serif
fonts to generate the text layer and relies on system fonts.
The difference in the `lang` attribute led to different fonts
being picked, causing the misalignment.
@Snuffleupagus Snuffleupagus linked a pull request May 21, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants