diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 6c220f1d8..995af91ff 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,4 +1,5 @@ 2005-09-01 Don Allingham + * src/docgen/OpenOfficeDoc.py: fix font point size handling * src/Plugins.py: sort submenu entries properly * src/PeopleView.py: replace unique string with one already translated * src/gramps_main.py: replace unique string with one already translated diff --git a/gramps2/src/docgen/OpenOfficeDoc.py b/gramps2/src/docgen/OpenOfficeDoc.py index b1e1516d3..aa73be4bd 100644 --- a/gramps2/src/docgen/OpenOfficeDoc.py +++ b/gramps2/src/docgen/OpenOfficeDoc.py @@ -218,8 +218,8 @@ class OpenOfficeDoc(BaseDoc.BaseDoc): self.cntnt.write('style:font-name="Arial" ') else: self.cntnt.write('style:font-name="Times New Roman" ') - self.cntnt.write('fo:font-size="%dpt" ' % font.get_size()) - self.cntnt.write('style:font-size-asian="%dpt" ' % font.get_size()) + self.cntnt.write('fo:font-size="%.3fpt" ' % font.get_size()) + self.cntnt.write('style:font-size-asian="%.3fpt" ' % font.get_size()) color = font.get_color() self.cntnt.write('fo:color="#%02x%02x%02x" ' % color) if font.get_bold(): @@ -258,8 +258,8 @@ class OpenOfficeDoc(BaseDoc.BaseDoc): self.cntnt.write('fo:font-weight="bold" ') if font.get_italic(): self.cntnt.write('fo:font-style="italic" ') - self.cntnt.write('fo:font-size="%dpt" ' % font.get_size()) - self.cntnt.write('style:font-size-asian="%dpt"/> ' % font.get_size()) + self.cntnt.write('fo:font-size="%.3fpt" ' % font.get_size()) + self.cntnt.write('style:font-size-asian="%.3fpt"/> ' % font.get_size()) self.cntnt.write('\n') for style_name in self.table_styles.keys(): @@ -578,7 +578,7 @@ class OpenOfficeDoc(BaseDoc.BaseDoc): self.sfile.write('style:font-name="Arial" ') else: self.sfile.write('style:font-name="Times New Roman" ') - self.sfile.write('fo:font-size="' + str(font.get_size()) + 'pt" ') + self.sfile.write('fo:font-size="%.3fpt" ' % font.get_size()) color = font.get_color() self.sfile.write('fo:color="#%02x%02x%02x" ' % color) if font.get_bold(): @@ -941,7 +941,7 @@ class OpenOfficeDoc(BaseDoc.BaseDoc): self.cntnt.write('draw:style-name="%s" ' % style) self.cntnt.write('draw:z-index="0" ') self.cntnt.write('svg:width="%.3fcm" ' % size) - self.cntnt.write('svg:height="%dpt" ' % (font.get_size()*1.1)) + self.cntnt.write('svg:height="%.3fpt" ' % (font.get_size()*1.1)) self.cntnt.write('svg:x="%.3fcm" ' % (x-(size/2.0))) self.cntnt.write('svg:y="%.3fcm">\n' % float(y)) @@ -961,7 +961,7 @@ class OpenOfficeDoc(BaseDoc.BaseDoc): self.cntnt.write('\n' % float(y))