Open Bug 1716004 Opened 4 years ago Updated 11 months ago

Text is unclear/pixelated when you open a pdf in Firefox

Categories

(Firefox :: PDF Viewer, defect, P3)

Firefox 91
Desktop
All
defect

Tracking

()

Tracking Status
firefox89 --- disabled
firefox90 --- affected
firefox91 --- affected

People

(Reporter: rpopovici, Unassigned)

References

Details

(Whiteboard: [pdfjs-form-xfa])

Attachments

(2 files, 1 obsolete file)

Attached image 2021-06-11_12h48_36.png

Tested with:
Nightly 91.0a1 (2021-06-10)

Tested on:
Win 10

Preconditions:
In about:config, set pdfjs.enableXfa = true

Steps:

  1. Launch firefox
  2. Open the following pdf: https://bug1671648.bmoattachments.org/attachment.cgi?id=9182033

Actual result:
Text is unclear/pixelated in pdf. See screenshot

Expected result:
The text should be readable as in Adobe Reader.

Attached image 2021-06-11_12h50_35.png
Blocks: pdf-xfa
Severity: -- → S3
Summary: Text is blurry/weird in pdf viewer → Text is unclear/pixelated when you open a pdf in Firefox
Priority: -- → P3

This issue also occurs on Mac OS 11.4 and Ubuntu 20.04.

OS: Windows 10 → All

When some fonts are not embedded in the pdf, we rescale (using some hard-coded scale factors) the glyph outlines from Liberation font in order to have a similar rendering as for the original missing font.
But we don't touch at all to the font hinting data and maybe when the font size is too small then the rendering is a bit incorrect.

QA Whiteboard: [pdf_xfa_generic]
Whiteboard: [pdfjs-form-xfa]
Attachment #9386727 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: