E-book viewer: Fix header/footer text size too small when using multiple monitors and the primary monitors DPI is much less than secondary monitor DPI. Fixes #2097563 [Header and Footer text in eBook Viewer Illegible on 4k monitor](https://bugs.launchpad.net/calibre/+bug/2097563)

This commit is contained in:
Kovid Goyal 2025-02-08 09:08:43 +05:30
parent 161000b587
commit bd10c248a0
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -661,7 +661,7 @@ class WebView(RestartingWebEngineView):
ui_data = {
'all_font_families': QFontDatabase.families(),
'ui_font_family': family,
'ui_font_sz': f'{fi.pixelSize()}px',
'ui_font_sz': f'{fi.pointSizeF()}pt',
'show_home_page_on_ready': self.show_home_page_on_ready,
'system_colors': system_colors(),
'QT_VERSION': QT_VERSION,