XmacsLabs / mogan

Mogan STEM Suite (based on GNU TeXmacs): Enjoy exploring science and technology!
https://mogan.app
GNU General Public License v3.0
373 stars 30 forks source link

Wayland support and HiDPI screens #496

Open quasisphere opened 1 year ago

quasisphere commented 1 year ago

The problem: When running under the wayland compositor Sway configured to 2x HiDPI scaling one gets blurry fonts in the main editing area.

I found the following somewhat hacky solution:

  1. add ("retina-factor" "on") to ~/.Xmacs/system/preferences.scm
  2. Run mogan with the flag "-platform wayland" to get Qt run in wayland mode.

I think a low-hanging fruit would be to expose the retina-factor setting to the user in the "High resolution settings" menu, as presently it is not shown for non-macOS users. I think there is probably some proper fix as well to handle other scaling ratios than 2 etc., but as I am not very familiar with either wayland or the internals of TeXmacs, I don't know what it is.

da-liii commented 5 months ago

Finally, I bought a non-macOS device with HiDPI support. Let me improve HiDPI support in v1.2.6.