Closed Bug 1186827 Opened 10 years ago Closed 9 years ago

[PDF Viewer] Issue about bad rendering of fonts (Error: downloadable font: OS/2: bad cap_height: -3)

Categories

(Firefox :: PDF Viewer, defect)

39 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 42
Tracking Status
firefox39 --- wontfix
firefox40 + wontfix
firefox41 + fixed
firefox42 + fixed

People

(Reporter: olivier, Assigned: Snuffleupagus)

References

Details

(Keywords: regression, Whiteboard: [pdfjs-c-rendering][pdfjs-d-font-conversion][pdfjs-f-regression][pdfjs-f-fixed-upstream] https://github.com/mozilla/pdf.js/pull/6270)

Attachments

(2 files)

Attached file 769443495.pdf
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0 Build ID: 20150630154324 Steps to reproduce: Just only display this attached file in firefox. The file is correctly formed. Fonts are incorporated in. Actual results: Texts are not well displayed. Characters are replaced by anothers. May be fonts are not well read ? Expected results: Good display like in acrobat reader or another browser.
Component: Untriaged → PDF Viewer
Console log: "PDF 3ceb149c38c10122fe38de0ba6608929 [1.4 TCPDF 6.2.6 (http://www.tcpdf.org) / -] (PDF.js: 1.1.24)" viewer.js:6225:1 downloadable font: OS/2: bad cap_height: -3 (font-family: "g_font_1" style:normal weight:normal stretch:normal src index:0) source: data:font/opentype;base64,T1RUTwAJAIAAAwAQQ0ZGIBzo6QEAAACcAAFldU9TLzJBJyqSAAFmFAAAAGBjbWFwzMMNdwABZnQAAADKaGVhZKsnT+kAAWdAAAAANmhoZWEDmP/aAAFneAAAACRobXR4OUwAAAABZ5wAAAMYbWF4cADGUAAAAWq0AAAABm5hbWXFlHoVAAFqvAAAAeBwb3N0AAMAAAABbJwAAAAgAQAEBAABAQEIQW5vdGhlcgABAQE8+CgA+CkB+CoC+CsD+BUE+w8MA58MBFj7fPps+ikFHQAAAQcPHQAAAAAQHQAAApIRHQAAACQdAAEyihIAEQEBBAoPHyYtNT1FTVVdZXGSmaBtdTFtaWRkb3QubnVsbG5vbm1hcmtpbmdyZXR1cm5nbHlwaDk4Z2x5cGg5OWdseXBoMTAwZ2x5cGgxMDFnbHlwaDEwMmdseXBoMTAzZ2x5cGgxMDRnbHlwaDEwNWdseXBoMTA2MS4wMCA2LzE1Lzk4RnJlZXdhcmUgZnJvbTogIFVuQXV0aG9yaXplZCBUeXBlQW5vdGhlckFub3RoZXIAAAAAAAEAAgADAAQABQAGAAcAaAAJAAoACwAMAA0ADgAPABAAEQASABMAFAAVABYAFwAYABkAGgAbABwAHQAeAB8AIAAhACIAIwAkACUAJgAnACgAKQAqACsALAAtAC4ALwAwADEAMgAzADQANQA2ADcAOAA5ADoAOwA8AD0APgA/AEAAfABCAEMARABFAEYARwBIAEkASgBLAEwATQBOAE8AUABRAFIAUwBUAFUAVgBXAFgAWQBaAFsAXABdAF4AXwBhAGIAZwBkAKAAZgCqAKUAoQCcAK attachment.cgi downloadable font: OS/2: bad cap_height: -3 (font-family: "g_font_2" style:normal weight:normal stretch:normal src index:0) source: data:font/opentype;base64,T1RUTwAJAIAAAwAQQ0ZGIMNIbt8AAACcAAA7bU9TLzJBRCqLAAA8DAAAAGBjbWFwzMMNrgAAPGwAAADKaGVhZKsnT+IAAD04AAAANmhoZWEDo///AAA9cAAAACRobXR4E0MAAAAAPZQAAAP0bWF4cAD9UAAAAEGIAAAABm5hbWWFnjFRAABBkAAAAhxwb3N0AAMAAAAAQ6wAAAAgAQAEAgABAQESQXZlbmlyTFRTdGQtUm9tYW4AAQEBNPgQAPgzAfg0DAD4NQL4NgP4GQT7OvuO+nz6NAUdAAAFeQ8dAAAFgBEdAAAAQh0AAC7pEgAcAgABAAYACwASABQAGAAhACoANQA8AEUATABTAFsAYwBuAHYAfwCLAJIAmQCgAKcArgC1AZ0ExQTbBOhEZWx0YU9tZWdhdW5pMDNCQ3BpRXVyb2FmaWk2MTI4OWVzdGltYXRlZHBhcnRpYWxkaWZmcHJvZHVjdHN1bW1hdGlvbnVuaTIyMTlyYWRpY2FsaW5maW5pdHlpbnRlZ3JhbGFwcHJveGVxdWFsbm90ZXF1YWxsZXNzZXF1YWxncmVhdGVyZXF1YWxsb3plbmdldW5pMDBBMHVuaTAwQUR1bmkwMkM5dW5pMDNBOXVuaTIyMTVDb3B5cmlnaHQgMTk4OSwgMTk5NSwgMjAwMiBBZG9iZSBTeXN0ZW1zIEluY29ycG9yYXRlZC4gQWxsIFJpZ2h0cyBSZXNlcnZlZC4gQXZlbmlyIGlzIGEgdHJhZGVtYXJrIG9mIEhlaWRlbGJlcmdlciBEcnVja21hc2NoaW5lbiBBRywgZXhjbHVzaXZlbHkgbGljZW5zZW attachment.cgi
Summary: pdf viewer - an example of pdf file that is not well displayed in firefox → [PDF Viewer] Issue about bad rendering of fonts (Error: downloadable font: OS/2: bad cap_height: -3)
It regressed: good=2015-03-28 bad=2015-03-29 http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=ad587ca628cf&tochange=385840329d91 Ryan VanderMeulen — Bug 1148192 - Update pdf.js to version 1.1.24. r=bdahl, r=Mossop Maybe: #5770 Correctly detect OpenType font files with CFF data
Blocks: 1148192
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
mossop - I saw you did a review on bug 1148192. Do you know who can investigate a regression in pdf.js? loic - We picked up a new version of pdf.js for 40 (bug 1157827). Can you confirm that 40, 41, and 42 are all affected?
Flags: needinfo?(epinal99-bugzilla2)
Flags: needinfo?(dtownsend)
Yes, all three are affected, the next updates of pdf.js have not fixed this regression.
Flags: needinfo?(epinal99-bugzilla2)
Brendan maybe? I only review the browser integration pieces.
Flags: needinfo?(dtownsend) → needinfo?(bdahl)
Jonas is the dev who worked on font issues in pdf.js.
Flags: needinfo?(jonas.jenwald)
Flags: needinfo?(jonas.jenwald)
Whiteboard: [pdfjs-c-rendering][pdfjs-d-font-conversion][pdfjs-f-regression]
Looks like we will ship 40 with this bug. However, it seems that we will have a fix in time for 41.
No longer blocks: 1148192
Status: NEW → RESOLVED
Closed: 9 years ago
Depends on: 1188344
Flags: needinfo?(bdahl)
Resolution: --- → FIXED
Whiteboard: [pdfjs-c-rendering][pdfjs-d-font-conversion][pdfjs-f-regression] → [pdfjs-c-rendering][pdfjs-d-font-conversion][pdfjs-f-regression][pdfjs-f-fixed-upstream] https://github.com/mozilla/pdf.js/pull/6270
Target Milestone: --- → Firefox 42
Congratulations guys, thank you and keep it up :-)
Pinged Ryan and Wes in bug 1188344 regarding porting of fix to Beta41.
Assignee: nobody → jonas.jenwald
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: