add font-family

git-svn-id: https://pdfminerr.googlecode.com/svn/trunk/pdfminer@273 1aa58f4a-7d42-0410-adbc-911cccaed67c
pull/1/head
yusuke.shinyama.dummy 2010-11-14 10:07:50 +00:00
parent 476ecf7e32
commit fb4ce96309
1 changed files with 2 additions and 2 deletions

View File

@ -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