add font-family
git-svn-id: https://pdfminerr.googlecode.com/svn/trunk/pdfminer@273 1aa58f4a-7d42-0410-adbc-911cccaed67cpull/1/head
parent
476ecf7e32
commit
fb4ce96309
|
@ -278,8 +278,8 @@ class HTMLConverter(PDFConverter):
|
|||
if font != self._font:
|
||||
if self._font is not None:
|
||||
self.write('</span>')
|
||||
self.write('<span style="font-size:%dpx">' %
|
||||
(fontsize * self.scale * self.fontscale))
|
||||
self.write('<span style="font-family: %s; font-size:%dpx">' %
|
||||
(fontname, fontsize * self.scale * self.fontscale))
|
||||
self._font = font
|
||||
self.write_text(text)
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue