otfried / ipe

The Ipe extensible drawing editor
http://ipe.otfried.org
125 stars 9 forks source link

HiDPI monitors are not detected and do not work #470

Closed GoBigorGoHome closed 11 months ago

GoBigorGoHome commented 1 year ago

I installed ipe 7.2.27 on my linux machine, and the monitor resolution is 3840x2160. But the screen geometry of ipe is 1920 x 1053, and the displayed graphics in ipe is a little bit blur.

How screen geometry is determined? Is there any settings option for it?

 * Lua code: /usr/share/ipe/7.2.27/lua/?.lua
 * Style directories:
  - /home/zjs/.ipe/styles
  - /usr/share/ipe/7.2.27/styles
 * Styles for new documents: basic
 * Autosave file: %s.autosave.ipe
 * Save-as directory: .
 * Documentation: /usr/share/ipe/7.2.27/doc
 * Ipelets:
   - /usr/lib/ipe/7.2.27/ipelets
   - /home/zjs/.ipe/ipelets
 * Latex program path: 
 * Latex directory: /home/zjs/.ipe/latexrun/
 * Icons: /usr/share/ipe/7.2.27/icons/
 * Screen geometry: 1920 x 1053
 * External editor: /usr/bin/nano %s
otfried commented 1 year ago

Apparently how Qt handles HiDPI-displays has changed between Qt5 and Q6. I will have to investigate how to handle this.

I've just checked that I if you set export QT_USE_PHYSICAL_DPI=1, then the UI becomes crisp (but half the size) again. However, it still doesn't give the correct Screen geometry, and drawings on the canvas are still blurry.

Unfortunately, HiDPI handling on Linux does not seem to be standardized at all...

https://doc.qt.io/qt-6/highdpi.html

MiuKaShi commented 12 months ago

try QT_ENABLE_HIGHDPI_SCALING=0 ipe maybe help for your case

otfried commented 11 months ago

I think I've fixed it. I'll release 7.2.28 soon, hopefully next week.