specify SVG font size is in points, for stupid viewers

This commit is contained in:
Paul Franklin 2014-12-30 10:54:23 -08:00
parent f137c5b909
commit faeeeb6ceb

View File

@ -138,7 +138,7 @@ class SvgDrawDoc(BaseDoc, DrawDoc):
self.t.write('font-weight:bold;')
if font.get_italic():
self.t.write('font-style:italic;')
self.t.write('font-size:%d; ' % size)
self.t.write('font-size:%dpt; ' % size)
if font.get_type_face() == FONT_SANS_SERIF:
self.t.write('font-family:sans-serif;')
else:
@ -261,7 +261,7 @@ class SvgDrawDoc(BaseDoc, DrawDoc):
self.t.write(' font-weight:bold;')
if font.get_italic():
self.t.write(' font-style:italic;')
self.t.write(' font-size:%d;' % font_size)
self.t.write(' font-size:%dpt;' % font_size)
if font.get_type_face() == FONT_SANS_SERIF:
self.t.write(' font-family:sans-serif;')
else:
@ -295,7 +295,7 @@ class SvgDrawDoc(BaseDoc, DrawDoc):
self.t.write('font-weight:bold;')
if font.get_italic():
self.t.write('font-style:italic;')
self.t.write('font-size:%d; ' % font_size)
self.t.write('font-size:%dpt; ' % font_size)
if font.get_type_face() == FONT_SANS_SERIF:
self.t.write('font-family:sans-serif;')
else: