Bug#988135: evince: zooming 100% ignores dpi as reported by xrandr

Helmut Grohne helmut at subdivi.de
Sun Jun 19 19:27:03 BST 2022


Control: tags -1 + upstream patch
Control: severity -1 important

On Thu, May 06, 2021 at 01:55:44PM +0200, Helmut Grohne wrote:
> The logic there essentially says: If your screen is taller than 1080
> pixels in landscape, your dpi is 192 and otherwise it is 96. For a
> typical 1900x1200 24" display that happens to have roughly a dpi of 96,
> evince determines that it must be a HiDPI display at 192 dpi. As a
> result, 100% actually presents more like 200%.
> 
> That's quite unhelpful. This used to work correctly.

It is really annoying. Every single document I open with evince comes
out scaled unreadable.

It also is trivial to fix:

git revert c3ac0d3dc7bf05ebb219afcdf3d58f93d01e42cc

Possibly, a middle ground could be found by clamping the computed DPI to
the 96 to 192 range made in the guess, but I think that the 192 guess is
so bad that revert is the initial way to go.

Also keep in mind that working around the current behaviour is
impossible, because evince has no setting to force a dpi or like that.
On the other hand, working around a broken detection logic is as simple
as xrandr --dpi 96.

Would you mind a NMU?

Helmut



More information about the pkg-gnome-maintainers mailing list