mirror of
https://github.com/ankitects/anki.git
synced 2025-11-10 14:47:12 -05:00
embedded fonts should work on osx now; remove font-weight hack
This commit is contained in:
parent
9761e88ce5
commit
fe8f6d518a
1 changed files with 0 additions and 6 deletions
|
|
@ -325,12 +325,6 @@ def restoreHeader(widget, key):
|
||||||
def mungeQA(col, txt):
|
def mungeQA(col, txt):
|
||||||
txt = col.media.escapeImages(txt)
|
txt = col.media.escapeImages(txt)
|
||||||
txt = stripSounds(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
|
return txt
|
||||||
|
|
||||||
def applyStyles(widget):
|
def applyStyles(widget):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue