Scaling in hidpi - ubuntu 18.04 - Report ID: 1694376812

Hi,

I am running Ubuntu 18.04 in a hidpi monitor (3840x2160). Zotero 5.0.53 does not scale correctly.
All UI elements are double in size. Screen capture is here: https://imgur.com/a/AmpN5e4.

Can I force Zotero to a specific scale, perhaps by a configuration option or environment variable?

Thanks!
  • If you open a JS console in your browser, what's the value for window.devicePixelRatio?
  • Basically, there's layout.css.devPixelsPerPx in Advanced → Config Editor, but it should be set to -1.0 by default, which should make it automatically detect the scaling factor the same as in Firefox.
  • window.devicePixelRatio is 2.

    I changed layout.css.devPixelsPerPx from -1 to 2. The Toolbar is now scaled properly, but all the other UI elements are not: https://imgur.com/a/i64RFWz
  • Did you restart Zotero?
  • Yes, the scaling issue remains.
  • I don't really have a suggestion here. Given that even the menu bar isn't being scaled properly, there's clearly a more general problem with the detection on your system. This isn't our code — it's just Firefox stuff — and we haven't had other recent reports of this.

    What happens if you open Firefox 52 ESR?
  • Well thanks a lot for the suggestion, it helped a lot.

    It turns out it is a bug in Firefox 52 ESR (https://bugzilla.mozilla.org/show_bug.cgi?id=1431337).

    A workaround is to set the environment variable GDK_DPI_SCALE to the correct value before starting Zotero. In my case it is:
    export GDK_DPI_SCALE=0.5

    Thanks!
  • OK, great. We should be updating Zotero to a Firefox 60 base soon, so this should go away.
Sign In or Register to comment.