Merge pull request #237 from maharmstone/master

stdHtml: fix certain fonts not working on Linux
This commit is contained in:
Damien Elmes 2018-05-28 12:15:43 +10:00 committed by GitHub
commit 4cee52a994
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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])