Sigil-Ebook / Sigil

Sigil is a multi-platform EPUB ebook editor
GNU General Public License v3.0
5.88k stars 573 forks source link

[Bug]: Ant-size program font/menu display scaling on a high-resolution display. Compatibility scaling settings don't do anything #734

Closed AnthonyBronislavaGonzales closed 10 months ago

AnthonyBronislavaGonzales commented 10 months ago

Bug Description

Menus and menu font are tiny and headache-inducing on a display larger than 1920x1080. Typically this problem can be solved by compatibility settings, i.e. high DPI settings.

System scaling by Application: no change, still tiny menus and fonts System scaling by System: no change, except causes flickering (the latter is not atypical, no one uses this setting) System scaling by System (enhanced): typically this setting fixes scaling issues, but with Sigil you get a completely bugged screen

Platform (OS)

Windows (Default)

OS Version / Specifics

Win 10

What version of Sigil are you using?

current

Any backtraces or crash reports

No response

dougmassay commented 10 months ago

Sigil has worked fine on high resolution monitors for many versions for many users. I myself use it with 3840x2160 monitors on both Windows and Linux with differing scale factors with no perceived problems. There have also been zero reports of "ant-sized" menu fonts on our user forums.

dougmassay commented 10 months ago

Make sure you're not using any system-wide QT_* environment variables meant to affect Qt6's automatic high dpi handling. Specifically QT_ENABLE_HIGHDPI_SCALING=0 will completely disable any high dpi scaling.

The following list of environment variables will affect the Qt6 bundled with Sigil's ability to automatically manage high dpi settings.

QT_FONT_DPI (legacy variable for backward compatability) QT_SCALE_FACTOR QT_SCALE_FACTOR_ROUNDING_POLICY QT_SCREEN_SCALE_FACTORS QT_USE_PHYSICAL_DPI

Have you changed the default system font and/or font size in Sigil's preferences?

In short, it's going to be difficult for me to troubleshoot an issue I (and other users) can't replicate.

AnthonyBronislavaGonzales commented 10 months ago

Thanks for the suggestions Doug. I understand the difficulty you state. I will look into these items and see if I can find a solution, or if not, if I can find more information for you. No one else has encountered this scaling issue?

dougmassay commented 10 months ago

If they have encountered them, they've not reported them. We had some issues early on with high dpi/high resolution on Windows when Qt5 first provided settings for them (mostly multi-monitor stuff)., but haven't heard anything for a long time. The transition to Qt6's automatically handling of the scaling has been fairly seamless so far.

dougmassay commented 10 months ago

For the record: if I set the QT_SCALE_FACTOR environment variable to some thing less than 1 (like .75), I get pretty small Sigil fonts. And none of the high dpi settings overrides that you mentioned in your first post would affect it.

kevinhendricks commented 10 months ago

Any updates as to what is causing your issues on your machine?

kevinhendricks commented 10 months ago

I am closing this as there is no Sigil bug that we can reproduce. If you find out what is causing the issue to happen or want help tracking it down. Post here and we would be happy to reopen this issue.

AnthonyBronislavaGonzales commented 9 months ago

FWIW I finally figured this out. Preferences ---> Appearance ---> Main UI --- > Main UI Font ---> something bigger ---> restart

That solves it.