Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Math generated by LaTeX not rendered correctly #4436

Closed
zmwangx opened this issue Mar 11, 2014 · 7 comments · Fixed by #4474
Closed

Math generated by LaTeX not rendered correctly #4436

zmwangx opened this issue Mar 11, 2014 · 7 comments · Fixed by #4474

Comments

@zmwangx
Copy link

zmwangx commented Mar 11, 2014

Some math papers generated by LaTeX are not rendered correctly in Opera on OS X. (Specifically, I'm using Opera 20.0.1387.64 on OS X 10.9.2 with PDF Viewer 0.8.1067.)

Most noticeably, fraction lines and top bars of square root signs are occasionally missing. For instance, the following screenshot is taken from Page 9, Proposition 7 of this paper:
fraction lines and top bars of square root signs missing
This issue happens more often at lower zoom levels, and the behavior changes when you zoom in and zoom out.

In fact, the issue also affects Firefox, but only when I zoom out so much to the extent that texts are barely legible.

(I have "Use hardware acceleration when available" checked in Opera preferences, in case it is relevant.)

@timvandermeij
Copy link
Contributor

I cannot reproduce this using Windows 7 x64, Firefox Nightly 30.0a1 (64 bit, HWA on) and the latest PDF.js development version.

@zmwangx
Copy link
Author

zmwangx commented Mar 11, 2014

@timvandermeij As I indicated above, this issue is mostly Opera specific.

@zmwangx
Copy link
Author

zmwangx commented Mar 11, 2014

Firefox stable 27.0.1 on OS X 10.9.2, PDF Viewer 0.8.649, at zoom level 70% (texts barely legible), we can also see fraction line missing in the display math:
fraction line missing

@timvandermeij
Copy link
Contributor

It's most likely OS X specific then. I tried with HWA off, but I still cannot reproduce it with Firefox.

@zmwangx
Copy link
Author

zmwangx commented Mar 11, 2014

@timvandermeij It's not OS X specific. I tested on both Opera and Firefox in my Windows 8.1 x64 VM running in VMware Fusion 6.0.2. While I can't reproduce in Firefox either, I can certainly reproduce in Opera (at automatic zoom):
math missing
I haven't tested on Linux since I don't have a GUI VM.

It would be great if you could give it a try on Opera, if that's convenient for you.

@timvandermeij
Copy link
Contributor

Marking as opera-specific for now, although it might prove to be the case in more browsers/OS versions. Also marking as triage-needed because we will need to look into this more to see what's actually causing the issue.

@bthorben
Copy link
Contributor

We reduced the document to a single line: http://chriskr.github.io/tests/just-the-line.pdf
This line is actually an image produced by

10 0 0 -0.48 10 10 cm
BI
  /IM true
  /W 1
  /H 1
  /BPC 1
  ID 0x00
EI

Firefox is better at drawing thin (less than 1px) images, Chrome and Opera are better at drawing thin lines. As this is an image, sometimes it disappears. We have a small canvas testcase that shows this behaviour:
http://chriskr.github.io/tests/canvas-draw-line-with-image.html

We will see if we can do something in the rendering engine and will get back to you.

PS: The issue is not Opera, but Chromium (i.e Opera + Chrome) specific

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants