From 61865fed6268532f386bf9220cfd094c4ef03283 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 24 Nov 2005 05:41:44 +0000 Subject: [PATCH] * src/docgen/KwordDoc.py: fix margins and fonts. svn: r5433 --- gramps2/ChangeLog | 3 +++ gramps2/src/docgen/KwordDoc.py | 18 ++++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index ae8b6701e..796668122 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2005-11-23 Don Allingham + * src/docgen/KwordDoc.py: fix margins and fonts. + 2005-11-23 Wayne Bergeron * src/GenericFilter.py (IsLessThanNthGenerationAncestorOfBookmarked): Add new filter rule. diff --git a/gramps2/src/docgen/KwordDoc.py b/gramps2/src/docgen/KwordDoc.py index 046b6fb83..1c099fbb2 100644 --- a/gramps2/src/docgen/KwordDoc.py +++ b/gramps2/src/docgen/KwordDoc.py @@ -176,8 +176,9 @@ class KwordDoc(BaseDoc.BaseDoc): p = self.style_list[name] - pad = points(p.get_padding())/2 - self.f.write('\n' % (pad,pad)) + tpad = points(p.get_top_margin()) + bpad = points(p.get_bottom_margin()) + self.f.write('\n' % (tpad,bpad)) if p.get_alignment() == BaseDoc.PARA_ALIGN_CENTER: self.f.write('\n') elif p.get_alignment() == BaseDoc.PARA_ALIGN_JUSTIFY: @@ -196,9 +197,9 @@ class KwordDoc(BaseDoc.BaseDoc): font = p.get_font() self.f.write('\n') if font.get_type_face==BaseDoc.FONT_SANS_SERIF: - self.f.write('\n') + self.f.write('\n') else: - self.f.write('\n') + self.f.write('\n') self.f.write('\n' % font.get_size()) self.f.write('\n' % font.get_color()) if font.get_bold(): @@ -274,9 +275,9 @@ class KwordDoc(BaseDoc.BaseDoc): self.p = self.style_list[self.style_name] self.font = self.p.get_font() if self.font.get_type_face() == BaseDoc.FONT_SERIF: - self.font_face = "Arial" + self.font_face = "Bitstream Vera Serif" else: - self.font_face = "Times New Roman" + self.font_face = "Bitstream Vera Sans" if leader != None: self.text = leader + '\t' @@ -306,8 +307,9 @@ class KwordDoc(BaseDoc.BaseDoc): self.f.write('\n') self.f.write('\n' % self.style_name) - pad = points(self.p.get_padding())/2 - self.f.write('\n' % (pad,pad)) + tpad = points(self.p.get_top_margin()) + bpad = points(self.p.get_bottom_margin()) + self.f.write('\n' % (tpad,bpad)) if self.p.get_alignment() == BaseDoc.PARA_ALIGN_CENTER: self.f.write('\n')