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 753220 - Zoom level incorrect for HiDPI display
Zoom level incorrect for HiDPI display
Status: RESOLVED OBSOLETE
Product: evince
Classification: Core
Component: PDF
3.16.x
Other Linux
: Normal minor
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-08-04 06:53 UTC by Darcy
Modified: 2018-05-22 16:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
HiDPI at 100% zoom (207.48 KB, image/png)
2015-08-04 11:24 UTC, Darcy
Details
HiDPI at 200% zoom (252.33 KB, image/png)
2015-08-04 11:24 UTC, Darcy
Details
Normal DPI with 100% (109.42 KB, image/png)
2015-08-04 11:26 UTC, Darcy
Details

Description Darcy 2015-08-04 06:53:55 UTC
Hi,

When using a HiDPI screen, the zoom factor is doubled under the hood and the user sees this 'doubled' zoom scaling factor in the UI.

The expected outcome is that the user is oblivious to the doubling and only sees the perceived zoom level.  This also means that the user cannot increase the zoom by as much as before.

The zoom level is pretty trivial to fix, I can get a patch together but I may need some help for tricking the back end to allow higher than the maximum zoom level already set.
Comment 1 José Aliste 2015-08-04 10:51:36 UTC
can you upload screenshots of what you mean?
Comment 2 Darcy 2015-08-04 11:24:18 UTC
Created attachment 308725 [details]
HiDPI at 100% zoom
Comment 3 Darcy 2015-08-04 11:24:45 UTC
Created attachment 308726 [details]
HiDPI at 200% zoom
Comment 4 Darcy 2015-08-04 11:26:59 UTC
Created attachment 308727 [details]
Normal DPI with 100%
Comment 5 Darcy 2015-08-04 11:30:22 UTC
Okay, did that clear it up ok?  The PDFs were a little different so please excuse.
Comment 6 José Aliste 2015-08-04 14:52:57 UTC
Yes. How did you created the normal DPI? another machine or same maching changing GTK_SCALING_FACTOR?

I think the issue is not with the hiDPi but instead that we are not getting the DPI right in the calculation for the zoom... We are supposed to compute the exact dpi of the screen and use that to set the zoom with the goal of making the zoom "physical", so if it's a a4 paper and you put 100% then it should look at natural size.
Comment 7 Darcy 2015-08-04 22:02:08 UTC
(In reply to José Aliste from comment #6)
> Yes. How did you created the normal DPI? another machine or same maching
> changing GTK_SCALING_FACTOR?
> 
> I think the issue is not with the hiDPi but instead that we are not getting
> the DPI right in the calculation for the zoom... We are supposed to compute
> the exact dpi of the screen and use that to set the zoom with the goal of
> making the zoom "physical", so if it's a a4 paper and you put 100% then it
> should look at natural size.

I used two machines, first attached to a normal 1080 (24") and second to a 24" HiDPI.  I get the same behaviour on a MacBook Pro retina.
Comment 8 François Guerraz 2016-10-19 13:19:32 UTC
FYI this is still an issue with 3.22.
Comment 9 Bobby Powers 2017-09-24 17:44:13 UTC
I still have this issue as well -- on my HiDPI laptop screen, I have to look at PDFs at 50%, and when using an external monitor (where gnome's scaling factor has automatically adjusted to 100%), I can correctly use 100%.  I'm using a fresh install of Gnome 3.26 on Fedora
Comment 10 François Guerraz 2017-10-09 13:26:30 UTC
Also probably linked, when a document is opened, it's opened in a huge window that's bigger than the screen area. One has to maximize the window in order to access the close button.
Comment 11 Ralf 2018-02-07 09:29:38 UTC
Possibly related: https://bugzilla.gnome.org/show_bug.cgi?id=793239
Comment 12 GNOME Infrastructure Team 2018-05-22 16:18:27 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/evince/issues/615.