Closed
Bug 834237
Opened 13 years ago
Closed 11 years ago
pdf.js: Chapter headlines in some PDFs are ugly because one headline has an overlap with another.
Categories
(Firefox :: PDF Viewer, defect, P2)
Tracking
()
RESOLVED
FIXED
People
(Reporter: rshimazu, Unassigned)
References
Details
(Whiteboard: [pdfjs-c-rendering][pdfjs-d-font-conversion])
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 6.0; rv:19.0) Gecko/20100101 Firefox/19.0
Build ID: 20130109111322
Steps to reproduce:
I accessed to the following urls with Firefox 19 beta1(pdf.js 0.7.82)
http://www.nisshinkyo.org/j251.pdf
http://www.objectclub.jp/community/codingstandard/CodingStd.pdf#page=5
http://www.cals.jacic.or.jp/coreconso/parts/johokoukai05_06_kaihi.pdf
Actual results:
Chapter headlines are ugly. One headline has an overlap with another.
Like a shadow.
If you save the file and open it with Adobe Reader, you will find how it should look like.
Expected results:
pdf.js should show chapter headline the same way other PDF viewers show.
Updated•13 years ago
|
Component: Untriaged → PDF Viewer
Updated•13 years ago
|
Priority: -- → P2
Whiteboard: [pdfjs-c-rendering][pdfjs-d-font-conversion]
Comment 2•13 years ago
|
||
I was able to reproduce this issue with Firefox 19 beta 1, on a Windows 7 on 64-bit machine.
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0
Build ID: 20130109111322
With the Firefox 19 beta 3 build, everything looks as expected now.
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0
Build ID: 20130123083802
Comment 3•13 years ago
|
||
This issue is also reproducible with a Vista 32-bit machine, using Firefox beta 1, build ID: 20130109111322
With Firefox 19 beta 3, build ID: 20130123083802, on a Vista 32-bit machine, everything works as expected.
Comment 4•13 years ago
|
||
Mike, do you still get the bad rendering with Firefox 19 beta 3?
Comment 5•13 years ago
|
||
I can reproduce in Firefox19.0b4
http://hg.mozilla.org/releases/mozilla-beta/rev/e815122c4b1f
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0 ID:20130130080006
And Nightly21.0a1 as well.
http://hg.mozilla.org/mozilla-central/rev/4e7c92906a79
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20130202 Firefox/21.0 ID:20130202030955
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 7•13 years ago
|
||
This is because fillText uses bitmaps while strokeText uses outlines from East-Asian TrueType fonts with bitmap glyphs.
Maybe we will need a new canvas API such as fillAndStrokeText.
About j251.pdf, it's fixed:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=a475f94bb1b1&tochange=beddd6d4bcdf
Fixed by:
Ryan VanderMeulen — Bug 937670 - Update pdf.js to version 0.8.681. r=bdahl
You need to log in
before you can comment on or make changes to this bug.
Description
•