Bug 264652 - Please query dpi from xserver
Summary: Please query dpi from xserver
Status: RESOLVED DUPLICATE of bug 268757
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR minor
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-28 16:39 UTC by Niels Ole Salscheider
Modified: 2012-09-24 07:59 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Niels Ole Salscheider 2011-01-28 16:39:09 UTC
Version:           unspecified (using KDE 4.6.0) 
OS:                Linux

Okular defaults to 72 dpi since Bug 204864 because of issues with multihead setups.
In the meantime, Xorg fixed the issue by defaulting to 96dpi. But Xorg allows people to overwrite the default dpi with the actual dpi so that they can get correct sizes on screen.
Since this is fixed in Xorg I think that the workaround in Okular can be reverted savely.

Reproducible: Didn't try
Comment 1 Niels Ole Salscheider 2012-08-03 09:37:25 UTC
This is still an issue, even though the problem that made the workaround necessary in Bug 204864 was "fixed" in Xorg by forcing 96dpi: https://bugs.freedesktop.org/show_bug.cgi?id=23705

The advantage of relying on the Xorg "fix" is that the user can still override the hardcoded value (e. g. using xrandr) so that it reflects the actual dpi of his screen.

Apart from the problem that the zoom setting does not reflect the real size on the screen, there is another problem for people with very high dpi: Since zoom is limited to 400% until a tiled renderer is implemented, the displayed page can be quite small, even when selecting 400%.

If you decide not to revert the changes from Bug 204864 and to stay with a dpi value hardcoded in the sourcecode, please adjust the hardcoded value to 96 dpi as this is the value that is used by Xorg.
Comment 2 Albert Astals Cid 2012-09-24 07:59:46 UTC

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