From fe8f6d518adc12318779d2e1e7d32238159e012f Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 17 Jan 2017 14:45:12 +1000 Subject: [PATCH] embedded fonts should work on osx now; remove font-weight hack --- aqt/utils.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/aqt/utils.py b/aqt/utils.py index 1c9e63c7f..96b1ede4a 100644 --- a/aqt/utils.py +++ b/aqt/utils.py @@ -325,12 +325,6 @@ def restoreHeader(widget, key): def mungeQA(col, txt): txt = col.media.escapeImages(txt) txt = stripSounds(txt) - # osx webkit doesn't understand font weight 600 - txt = re.sub("font-weight: *600", "font-weight:bold", txt) - if isMac: - # custom fonts cause crashes on osx at the moment - txt = txt.replace("font-face", "invalid") - return txt def applyStyles(widget):