From 85ed9910cdb26e793c0999c842601dce1aa85f2b Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 22 Jan 2010 00:31:50 +0900 Subject: [PATCH] use answer font family as well as size in answer comparison --- ankiqt/ui/view.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ankiqt/ui/view.py b/ankiqt/ui/view.py index 0bbebb5cb..93903e21b 100644 --- a/ankiqt/ui/view.py +++ b/ankiqt/ui/view.py @@ -152,10 +152,10 @@ class View(object): s = difflib.SequenceMatcher(None, b, a) sz = self.main.currentCard.cardModel.answerFontSize - ok = "background: %s; color: #000; font-size: %dpx" % ( - passedCharColour, sz) - bad = "background: %s; color: #000; font-size: %dpx;" % ( - failedCharColour, sz) + fn = self.main.currentCard.cardModel.answerFontFamily + st = "background: %s; color: #000; font-size: %dpx; font-family: %s;" + ok = st % (passedCharColour, sz, fn) + bad = st % (failedCharColour, sz, fn) for tag, i1, i2, j1, j2 in s.get_opcodes(): if tag == "equal":