embedded fonts should work on osx now; remove font-weight hack

This commit is contained in:
Damien Elmes 2017-01-17 14:45:12 +10:00
parent 9761e88ce5
commit fe8f6d518a

View file

@ -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):