mogan icon indicating copy to clipboard operation
mogan copied to clipboard

Text too small on some computers and displays?

Open jmhimara opened this issue 1 year ago • 5 comments

I'm not sure what the exact conditions for reproducing this error are, but this happens to me on my Windows 10 laptop which has a 4k display (also happens when connected to external monitor).

Some of the UI text is too small to read. See picture.

Screenshot

While the icons scale properly according to the display resolution, the text seems to remain very small. I have not found a way to change this.

jmhimara avatar Mar 23 '23 14:03 jmhimara

I do not own a 4k display. It is a pity I can not fix it in the near future.

da-liii avatar Mar 28 '23 15:03 da-liii

Qt HiDPI Scaling on Windows (and Linux) is a huge problem that is nasty even to pros. Maybe someone can donate @darcy-shen a 4K display (around $200) :)

ProfFan avatar Mar 30 '23 04:03 ProfFan

@ProfFan I have never used Qt, but it seems to me that it is scaling everything correctly (icons, ui, editor, etc) except the menu text. It might just be a simple setting change in the Qt portion of the code that allows the text to scale accordingly. https://doc.qt.io/qt-5/highdpi.html

I've also seen some forums where they suggest to set the font-size in pixels rather than points. That way it's easier for the gui manager to scale everything accordingly.

Where is the Qt code located in the source? Is it scheme or C++?

jmhimara avatar Mar 30 '23 05:03 jmhimara

I already bought a macOS M1 macbook and a laptop using Loongson 3A5000 only for developing Mogan. No budget for me to buy a 4k display Windows 10 laptop or a 4k display external monitor. I have a monitor, but it is not 4k. And I prefer to use laptop without connecting to a 4k display external monitor. Because I code in the car or in the coffee bar but not in a fixed place.

da-liii avatar Mar 30 '23 12:03 da-liii

Here is a related fix: https://github.com/texmacs/texmacs/commit/22aefdea075f41d41b78e79af492426c61c1ca99 It is about the toolbar height, I guess the font height is calculated via the focus toolbar height.

da-liii avatar Mar 30 '23 12:03 da-liii