diff --git a/aqt/browser.py b/aqt/browser.py index d52460faf..2c8e4cfbb 100644 --- a/aqt/browser.py +++ b/aqt/browser.py @@ -77,8 +77,8 @@ class DataModel(QAbstractTableModel): row = index.row() c = self.getCard(index) t = c.template() - f.setFamily(t.get("bfont", self.browser.mw.fontFamily)) - f.setPixelSize(t.get("bsize", self.browser.mw.fontHeight)) + f.setFamily(t.get("bfont", "arial")) + f.setPixelSize(t.get("bsize", 12)) return f elif role == Qt.TextAlignmentRole: align = Qt.AlignVCenter diff --git a/aqt/main.py b/aqt/main.py index 84e32a843..25169ac95 100644 --- a/aqt/main.py +++ b/aqt/main.py @@ -66,7 +66,6 @@ class AnkiQt(QMainWindow): self.setupAppMsg() self.setupKeys() self.setupThreads() - self.setupFonts() self.setupMainWindow() self.setupSystemSpecific() self.setupStyle() @@ -575,6 +574,9 @@ title="%s" %s>%s''' % ( if not auto or (self.pm.profile['syncKey'] and self.pm.profile['autoSync'] and not self.safeMode): + tooltip("Syncing not yet implemented") + return + from aqt.sync import SyncManager if not self.unloadCollection(): return @@ -1068,21 +1070,6 @@ will be lost. Continue?""")) # System specific code ########################################################################## - def setupFonts(self): - print("fixme: setupFonts()") - self.fontHeight = 12 - self.fontFamily = "arial" - self.fontHeightDelta = 0 - - return - f = QFontInfo(self.font()) - ws = QWebSettings.globalSettings() - self.fontHeight = f.pixelSize() - self.fontFamily = f.family() - self.fontHeightDelta = max(0, self.fontHeight - 13) - ws.setFontFamily(QWebSettings.StandardFont, self.fontFamily) - ws.setFontSize(QWebSettings.DefaultFontSize, self.fontHeight) - def setupSystemSpecific(self): self.hideMenuAccels = False if isMac: