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)
Tracking
()
RESOLVED
FIXED
Firefox 42
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)
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.
Reporter | ||
Updated•10 years ago
|
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
status-firefox39:
--- → affected
tracking-firefox40:
--- → ?
tracking-firefox41:
--- → ?
tracking-firefox42:
--- → ?
Ever confirmed: true
Keywords: regression
Comment 4•10 years ago
|
||
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?
status-firefox40:
--- → ?
status-firefox41:
--- → ?
status-firefox42:
--- → ?
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)
Comment 6•10 years ago
|
||
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)
Assignee | ||
Updated•10 years ago
|
See Also: → https://github.com/mozilla/pdf.js/pull/6270
Assignee | ||
Updated•10 years ago
|
Flags: needinfo?(jonas.jenwald)
Whiteboard: [pdfjs-c-rendering][pdfjs-d-font-conversion][pdfjs-f-regression]
Comment 10•9 years ago
|
||
Looks like we will ship 40 with this bug. However, it seems that we will have a fix in time for 41.
Assignee | ||
Updated•9 years ago
|
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
Reporter | ||
Comment 11•9 years ago
|
||
Congratulations guys, thank you and keep it up :-)
Pinged Ryan and Wes in bug 1188344 regarding porting of fix to Beta41.
Updated•9 years ago
|
Assignee: nobody → jonas.jenwald
You need to log in
before you can comment on or make changes to this bug.
Description
•