Closed Bug 1998618 Opened 7 months ago Closed 29 days ago

Font isn't correctly rendered

Categories

(Firefox :: PDF Viewer, defect, P3)

defect

Tracking

()

RESOLVED FIXED
147 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr140 --- unaffected
firefox144 --- unaffected
firefox145 --- wontfix
firefox146 --- wontfix
firefox147 --- fixed

People

(Reporter: calixte, Unassigned)

References

(Regression, )

Details

(Keywords: regression)

Attachments

(1 obsolete file)

Attached file Misrendered file (obsolete) —

STR:

The text isn't rendered as it must.

It's very likely a regression because of:
https://github.com/mozilla/pdf.js/pull/20197

Attachment #9524947 - Attachment is obsolete: true

Set release status flags based on info from the regressing bug 1991193

The pdf contains a font with some characters outside of the range [0x0000-0xFFFF] and when writing the cmap we use the format 4 which is supposed to only handle characters in this range !
For this specific font, a format 8 would have been better:
https://learn.microsoft.com/en-us/typography/opentype/spec/cmap#format-8-mixed-16-bit-and-32-bit-coverage

Anyway, we should understand why it was "correctly" failing before the PR #20197 because thanks to this failure we were able to fallback on a browser font.

Severity: -- → S3
Priority: -- → P3

Set release status flags based on info from the regressing bug 1991193

Depends on: 2043956
Status: NEW → RESOLVED
Closed: 29 days ago
Depends on: 2003036
No longer depends on: 2043956
Resolution: --- → FIXED
See Also: → 2043956
Target Milestone: --- → 147 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: