After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 722009 - evince needs to get physical display size from XRandR when possible
evince needs to get physical display size from XRandR when possible
Status: RESOLVED DUPLICATE of bug 608586
Product: evince
Classification: Core
Component: backends
3.10.x
Other Linux
: Normal minor
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-01-11 19:56 UTC by Bart Massey
Modified: 2014-01-13 19:04 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bart Massey 2014-01-11 19:56:53 UTC
It appears that evince on X11 systems is using the physical display size reported by the Xserver at startup (the "dimension") to determine DPI for rendering. Unfortunately, that size is almost always a lie, modified by the server to give a default DPI of 96 regardless of the physical DPI. Instead, evince needs to query the XRandR extension, when available, to get the physical display size for the current mode, and use that in its DPI calculation. If it does this, it will render at accurate physical size for most displays.

Reproduce by: render a PDF with known physical dimensions on an X display with actual physical DPI not 96. Get out a ruler. Verify that the physical size of the rendering on screen is wrong. Even after correcting the DPI, there may be problems due to the mishandling of fractional DPI (bug #693428).
Comment 1 Germán Poo-Caamaño 2014-01-13 19:04:42 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 608586 ***