View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0014335||Scribus||User Interface||public||2016-10-28 14:54||2019-02-26 20:01|
|Priority||normal||Severity||minor||Reproducibility||have not tried|
|Platform||Manjaro||OS||Linux||OS Version||16.10 64 bit|
|Summary||0014335: Big icons on HiDPI (hdpi) and large status bar|
|Description||If I start Scribus 1.5.3svn r21463 Qt5.7 all icons are too large. |
If I invoke it from the command line like so:
QT_QPA_PLATFORMTHEME=gtk2 QT_SCALE_FACTOR=0.786 scribus
and change the fonts to 11pt then I can view it correctly. See chat snippet below:
<killermoehre> Kunda_: do you have a HiDPI display? looks like this is the problem with the big icons <Kunda_> yes <Kunda_> i have hidpi <killermoehre> Kunda_: with »QT_QPA_PLATFORMTHEME=gtk2 QT_SCALE_FACTOR=0.786 scribus « it looks not so bad, but you have to set all font sizes in the application from 9 to 11 <Kunda_> wow, that really helped <killermoehre> Kunda_: so scribus does the HiDPI stuff wrong. I have a DPI setting of 125, so I have to use QT_SCALE_FACTOR=96/125 and scale every font by 125/96
||Using QT_SCALE_FACTOR=0.786 is wrong in the first place because this indicates Qt to reduce scale, which makes no sense for HiDPI. Also Qt does not support non integer scale factors at this point.|
The QT_SCALE_FACTOR has been also wrongly computed: as the DPI is higher, Qt has to scale up, so the theoretical scale factor is 125/96. But as previously mentioned, non integer scale factor are not supported by Qt. See http://blog.qt.io/blog/2016/01/26/high-dpi-support-in-qt-5-6/
"Q: Are non-integer scale factors supported?
A: Qt uses qreal in the API, and will allow setting non-integer scale factors via QT_SCALE_FACTOR. However, Qt does not guarantee that graphics and styles will be glitch-free in that case. Styles may break first: the fusion style is generally most scalable. The Qt platform plugins round the reported scale factors to the nearest integer."
killermoehre form #xfce here.
Problem is, IMHO, that qt5.7 for some reason does the recognition of the DPI wrong. VLC build against qt5.7 shows the same behavior. Maybe it's a Xfce bug, too.
||@killermoehre how can we learn if this is a Scribus issue or an upstream Xfce bug?|
||@Kunda well, it's not a Scribus issue, but either a Xfce or Qt issue (and because it worked with older Qt, I think it's a Qt issue).|
@killermoehre do you mind opening a qt bug right-quick I'll add screenshots for it. I'm just not 100% on what the issue is and don't know how to convey it well.
@Kunda yes, I mind.
The question is how Qt is determining the DPI settings. So pleas open a bug at there side, stating that you run Xfce and that the scaling is all off (with screenshot). The devs will probably know how to fix it or at least where to look at.
@killermoehre Ok, here is the upstream bug
Do you mind chiming in so that the devs see it's reproducible? Thanks!
When I run e.g. PhotoFlare with 'export QT_SCALE_FACTOR=2', I get a more or less sensible scaling. Icons are crap, but at least menu and other text items in the UI are all right:
Not with Scribus, though:
(This is the latest from SVN).
Unsure if I'm of any help here, just thought an update might be in place.
|2016-10-28 14:54||Kunda||New Issue|
|2016-10-28 14:54||Kunda||Tag Attached: HiDPI|
|2016-10-28 14:55||Kunda||Description Updated|
|2016-10-28 14:56||Kunda||OS||Yosemite => Linux|
|2016-10-28 14:56||Kunda||OS Version||10.10.5 => 16.10 64 bit|
|2016-10-28 14:56||Kunda||Platform||Manjaro 16.10 => Manjaro|
|2016-10-28 23:48||jghali||Note Added: 0042217|
|2016-10-29 07:00||jghali||Note Added: 0042218|
|2016-10-29 11:50||Kunda||Summary||HiDPI broken => Big icons on HiDPI|
|2016-10-29 12:36||Kunda||Summary||Big icons on HiDPI => Big icons on HiDPI and large status bar|
|2016-10-29 20:19||killermoehre||Note Added: 0042222|
|2016-10-31 08:43||JLuc||Relationship added||related to 0014180|
|2016-11-18 17:40||Kunda||Note Added: 0042462|
|2016-11-19 09:18||killermoehre||Note Added: 0042469|
|2016-11-19 11:39||Kunda||Note Added: 0042471|
|2016-11-19 12:14||killermoehre||Note Added: 0042474|
|2016-11-19 12:28||Kunda||Note Added: 0042475|
|2016-11-19 12:29||Kunda||Tag Attached: upstream|
|2016-11-19 12:29||Kunda||Assigned To||=> Kunda|
|2016-11-19 12:29||Kunda||Status||new => confirmed|
|2016-11-21 09:55||Kunda||Note View State: 0042474: private|
|2016-11-21 09:55||Kunda||Note View State: 0042474: public|
|2018-09-15 15:09||jghali||Relationship added||has duplicate 0015425|
|2018-09-17 07:33||ale||Summary||Big icons on HiDPI and large status bar => Big icons on HiDPI (hdpi) and large status bar|
|2018-12-07 17:43||alexandre||Note Added: 0045700|
|2019-02-26 20:01||JLuc||Description Updated|