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
Blurry content on a 4K monitor on Windows 10 #10807
Comments
If you leave the pref layout.css.devPixelsPerPx as the default, does the text look okay? |
@brendandahl No, still blurry unfortunately :/. The default is '-1.0', which on a 4k monitor is the equivalent of '2'. |
Firefox is reporting an incorrect devicePixelRatio of '1'. Forcing it to be '2' by setting the variable |
@Luuk3333 Did you file a bug upstream with Firefox? https://bugzilla.mozilla.org |
This may be related to, or even a duplicate of, https://bugzilla.mozilla.org/show_bug.cgi?id=1537955. |
I have not. However, Firefox seems to be reporting the correct device pixel ratio since version 67.0. |
To connect the issues better, here is the appropriate Firefox bugreport: https://bugzilla.mozilla.org/show_bug.cgi?id=1771184 |
Attach (recommended) or Link to PDF file here:
https://mozilla.github.io/pdf.js/web/viewer.html
Configuration:
Steps to reproduce the problem:
layout.css.devPixelsPerPx
to a value higher than '1'.What is the expected behavior?
The content of the PDF should be scaled according to the preference listed above.
What went wrong?
pdf.js displays PDFs blurry when using a 4K monitor on Windows 10. The only preference I have changed to get Firefox set up for a 4K monitor is the preference
layout.css.devPixelsPerPx
which I've set to '1.9' resulting in Firefox nicely scaling both Firefox and websites on the 27 inch monitor. However, the more that preference is increased the more blurry the built-in viewer displays PDFs. All content of PDFs is blurry, not just text. Also, zooming does not fix the problem.Here's a comparison between Firefox, Chrome and Edge with the latter two displaying the content correctly:
The text was updated successfully, but these errors were encountered: