From abbc03eeb9d83c0312cf4fab0162a3db7c4055d2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 6 Feb 2012 12:23:45 +0530 Subject: [PATCH] ... --- src/calibre/gui2/metadata/single_download.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/calibre/gui2/metadata/single_download.py b/src/calibre/gui2/metadata/single_download.py index 1c0f3c8042..091c10462b 100644 --- a/src/calibre/gui2/metadata/single_download.py +++ b/src/calibre/gui2/metadata/single_download.py @@ -323,14 +323,19 @@ class Comments(QWebView): # {{{ ans = unicode(col.name()) return ans - f = QFontInfo(QApplication.font(self.parent())).pixelSize() + fi = QFontInfo(QApplication.font(self.parent())) + f = fi.pixelSize()+1 + fam = unicode(fi.family()).strip().replace('"', '') + if not fam: + fam = 'sans-serif' + c = color_to_string(QApplication.palette().color(QPalette.Normal, QPalette.WindowText)) templ = '''\