From 6b65cfc08fc3c1d8a7393fa3ca7c0a954880b23f Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 27 Sep 2014 10:26:14 +0900 Subject: [PATCH] disable embedded fonts on osx --- aqt/utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aqt/utils.py b/aqt/utils.py index 21312b232..53b3509cc 100644 --- a/aqt/utils.py +++ b/aqt/utils.py @@ -331,6 +331,10 @@ def mungeQA(col, 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):