mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
disable embedded fonts on osx
This commit is contained in:
parent
f3fd5fb2fe
commit
6b65cfc08f
1 changed files with 4 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue