From bd10c248a018b3e0ca71af637dfdc674a19431fb Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 8 Feb 2025 09:08:43 +0530 Subject: [PATCH] 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) --- src/calibre/gui2/viewer/web_view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/viewer/web_view.py b/src/calibre/gui2/viewer/web_view.py index 8805235c4d..52af863be3 100644 --- a/src/calibre/gui2/viewer/web_view.py +++ b/src/calibre/gui2/viewer/web_view.py @@ -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,