From faeeeb6ceb37959adac8af9041ea40bb99eff71c Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Tue, 30 Dec 2014 10:54:23 -0800 Subject: [PATCH] specify SVG font size is in points, for stupid viewers --- gramps/plugins/docgen/svgdrawdoc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gramps/plugins/docgen/svgdrawdoc.py b/gramps/plugins/docgen/svgdrawdoc.py index aab896f7c..34f33c409 100644 --- a/gramps/plugins/docgen/svgdrawdoc.py +++ b/gramps/plugins/docgen/svgdrawdoc.py @@ -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: