diff --git a/aqt/webview.py b/aqt/webview.py index e8f5b3c4f..744860cb5 100644 --- a/aqt/webview.py +++ b/aqt/webview.py @@ -140,10 +140,20 @@ class AnkiWebView(QWebEngineView): return max(1, dpi / 96.0) def stdHtml(self, body, css="", bodyClass="", js=None, head=""): + if isWin: + fontspec = 'font-size:12px;font-family:"Segoe UI";font-weight: medium;' + elif isMac: + fontspec = "" + else: + family = self.font().family() + print("family", family) + fontspec = 'font-size:14px;font-family:%s;font-weight:medium;'%\ + family + self.setHtml(""" %s