stdHtml: fix certain fonts not working on Linux

This commit is contained in:
Mark Harmstone 2018-05-27 21:16:55 +01:00
parent 478d244a4f
commit 40612c5329

View file

@ -225,7 +225,7 @@ border-radius:5px; font-family: Helvetica }"""
else: else:
buttonspec = "" buttonspec = ""
family = self.font().family() family = self.font().family()
fontspec = 'font-size:14px;font-family:%s;'%\ fontspec = 'font-size:14px;font-family:"%s";'%\
family family
csstxt = "\n".join([self.bundledCSS("webview.css")]+ csstxt = "\n".join([self.bundledCSS("webview.css")]+
[self.bundledCSS(fname) for fname in css]) [self.bundledCSS(fname) for fname in css])