Closed Bug 1088663 Opened 10 years ago Closed 6 years ago

Switch PDF Viewer to use CSS Font Loading API instead of data-URIs

Categories

(Firefox :: PDF Viewer, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 64

People

(Reporter: yury, Unassigned)

References

Details

(Whiteboard: [pdfjs-c-integration])

Bug 1028497 introduces CSS font loading API into firefox. The PDF.js can use it in the generic viewer after https://github.com/mozilla/pdf.js/pull/5366. Looks like it's using memory better: does not create base64 string and DOM elements to hold that.

Currently m-c PDF Viewer is using data-URI as the only method for font-face registration: https://github.com/mozilla/pdf.js/blob/master/src/display/font_loader.js#L283. We shall probably change that.
Depends on: 1088437
Issue #5366 has been fixed. What's left to do here?
Depends on: 1149381
No longer depends on: 1088437
Status: NEW → RESOLVED
Closed: 6 years ago
Depends on: 1496753
Resolution: --- → FIXED
Target Milestone: --- → Firefox 64
You need to log in before you can comment on or make changes to this bug.