From 7e84ed6ed5d5c85f7436e8cb079a13006a6e2d68 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 5 Oct 2013 12:40:11 +0530 Subject: [PATCH] E-book viewer: Use font size setting for dictionary view as well E-book viewer: Use the default font size setting for the dictionary view as well. Fixes #1232025 [[Enhancement] Make font size of Dictionary, dependent of viewer font size](https://bugs.launchpad.net/calibre/+bug/1232025) --- src/calibre/gui2/viewer/main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/calibre/gui2/viewer/main.py b/src/calibre/gui2/viewer/main.py index 8681a0fe21..e9ffb19828 100644 --- a/src/calibre/gui2/viewer/main.py +++ b/src/calibre/gui2/viewer/main.py @@ -487,6 +487,11 @@ class EbookViewer(MainWindow, Ui_EbookViewer): at_start=True) def lookup(self, word): + from calibre.gui2.viewer.documentview import config + opts = config().parse() + settings = self.dictionary_view.page().settings() + settings.setFontSize(settings.DefaultFontSize, opts.default_font_size) + settings.setFontSize(settings.DefaultFixedFontSize, opts.mono_font_size) self.dictionary_view.setHtml('

'+ _('Connecting to dict.org to lookup: %s…')%word + '

')