febiosoftware / FEBioStudio

https://febio.org/
MIT License
62 stars 20 forks source link

FEBioStudio UI breaks when font scaling is used #80

Open TS-CUBED opened 7 months ago

TS-CUBED commented 7 months ago

Hello, I noticed a glitch in FEBioStudio.

I use font-scaling on my laptop and FEBioStudio doesn't seem to like that.

How to reproduce:

System Ubuntu 22.04 LTS (Pop!_OS), Gnome Desktop.

Use Gnome Tweaks to set Font Scaling Factor to, e.g. 0.95. In Gnome Tweaks: Fonts -> Scaling Factor

This results in the fonts being shifted on the start page of FEBioStudio, and the menus to be garbled (e.g. when you hover up and down on them). It also does not display the tabs (Repository), since the scaling is off.

Taking the Scaling Factor back to 1.0 fixes the issue.

FEBioStudio seems to be the only QT app that has that problem on my system.

Not a big deal, I have just disabled font scaling for now.

michaelrossherron commented 6 months ago

This took a bit of time to track down, and it looks like this is caused by the version of Qt that we're linking to on Linux. In a few weeks we're overhauling our build system for unrelated reasons, and I suspect that this issue will get fixed since we'll be switching to a newer Qt version.

I'll check back in with this issue when we do that.