mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 00:12:25 -04:00
allow translators to override Windows font
to work around Qt's awful fallback handling on Windows 10 https://anki.tenderapp.com/discussions/ankidesktop/32922-chinese-characters-in-the-main-window-when-setting-language-to-japanese
This commit is contained in:
parent
09651be9e7
commit
0543df7dfa
1 changed files with 4 additions and 2 deletions
|
@ -229,8 +229,10 @@ class AnkiWebView(QWebEngineView):
|
||||||
if js is None:
|
if js is None:
|
||||||
js = ["jquery.js"]
|
js = ["jquery.js"]
|
||||||
if isWin:
|
if isWin:
|
||||||
widgetspec = "button { font-size: 12px; font-family:'Segoe UI'; }"
|
#T: include a font for your language on Windows, eg: "Segoe UI", "MS Mincho"
|
||||||
fontspec = 'font-size:12px;font-family:"Segoe UI";'
|
family = _('"Segoe UI"')
|
||||||
|
widgetspec = "button { font-size: 12px; font-family:%s; }" % family
|
||||||
|
fontspec = 'font-size:12px;font-family:%s;' % family
|
||||||
elif isMac:
|
elif isMac:
|
||||||
family="Helvetica"
|
family="Helvetica"
|
||||||
fontspec = 'font-size:15px;font-family:"%s";'% \
|
fontspec = 'font-size:15px;font-family:"%s";'% \
|
||||||
|
|
Loading…
Reference in a new issue