invesalius / invesalius3

3D medical imaging reconstruction software
https://invesalius.github.io/
GNU General Public License v2.0
617 stars 286 forks source link

High DPI display support #60

Open bewantbe opened 7 years ago

bewantbe commented 7 years ago

On high DPI display (DPI>200) some widgets and text are not shown correctly which make some function not quite usable. Especially the left panel.

screenshot

tfmoraes commented 7 years ago

Unfortunately, we don't have access to a High DPI monitor to test. You are running inVesalius in Ubuntu? Maybe you can try to set an other scale factor ... The problems seems to be in the custom widgets we use from wxPython. I don' t know if it were fixed in wxPython.

bewantbe commented 7 years ago

I'm using Debian 8, which comes with Gnome 3.14, wxPython 3.0.1.1, inVesalius 3.0, roughly like Ubuntu 15.04.

I already used the tweak tool for Gnome and increase the scaling to 2. Most texts follow the scaling, but some other elements are not.

I will try some newer version of wxPython or wxWidgets.

tfmoraes commented 7 years ago

It seems that wxWidgets 3.1 have better support to High DPI monitors, but it's a under development version yet.

bewantbe commented 7 years ago

I found no easy way to use wxWidgets 3.1 at this time.

I compiled wxWidgets 3.1, then LD_PRELOAD the libraries and run inVesalius, inVesalius crashed with Segmentation fault.

Meanwhile, wxPython do not support wxWidgets 3.1 yet.

I think even without HiDPI Monitor, it is still possible to debug, just increase scaling factor or font size, see if the frames scales correctly.