Fixed: #84 (fontname was in unicode)

pull/55/head
Yusuke Shinyama 2015-04-05 19:02:02 +09:00
parent 0112112458
commit 14fd0fd2d6
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@ class HTMLConverter(PDFConverter):
if self._font is not None:
self.write('</span>')
self.write('<span style="font-family: %s; font-size:%dpx">' %
(fontname, fontsize * self.scale * self.fontscale))
(enc(fontname), fontsize * self.scale * self.fontscale))
self._font = font
self.write_text(text)
return