Summary: | Wrong size of rectangles around annotation icons (e.g. popup note) for PDF documents | ||
---|---|---|---|
Product: | [Applications] okular | Reporter: | Tobias Deiminger <haxtibal> |
Component: | PDF backend | Assignee: | Okular developers <okular-devel> |
Status: | ASSIGNED --- | ||
Severity: | normal | CC: | nate, null, simonandric5 |
Priority: | NOR | ||
Version: | 1.3.0 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | A5 pdf in Okular window with QT_SCALE_FACTOR=3 |
Description
Tobias Deiminger
2018-01-02 13:24:08 UTC
Thanks for digging into this, looking forward to the Phabricator review. > can't test the latter due to lacking hidpi setup HiDPI testing should be easy with something like "QT_SCALE_FACTOR=2.4 okular". Ref. https://doc.qt.io/qt-5/highdpi.html Created attachment 109645 [details]
A5 pdf in Okular window with QT_SCALE_FACTOR=3
This is how QT_SCALE_FACTOR=3 looks on my non-hidpi (1920x1080 at 21,6") screen. Diff 24634 from D9615 is applied and seems to work because rectangle matches around popup note icon. But widgets are huge, while PDF page looks the same as without setting QT_SCALE_FACTOR. Why is the PDF page at 100% zoom not three times bigger as well? Is this a valid test case?
> widgets are huge, while PDF page looks the same
In general Okular should display documents based on the physical dimensions as specified in the PDF, e.g. for 100% zoom of an A5-sized document you should be able to get the same size measurements with a ruler as when measuring a real A5 paper on your desk.
IOW, this depends on the (hardware) DPI of the monitor, but not a user-set (virtual) DPI to scale UI elements.
A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/412 |