From 33a41ef87fc9d0c5b8a5cf6fc13591551cfd73da Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Tue, 22 Feb 2005 01:45:52 +0000 Subject: [PATCH] * src/docgen/PSDrawDoc.py (draw_text,write_at): Attempt latin1 encoding. svn: r4069 --- gramps2/ChangeLog | 3 +++ gramps2/src/docgen/PSDrawDoc.py | 9 ++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 2dc516ece..32c0a60b3 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -5,6 +5,9 @@ 2005-02-20 Alex Roitman * NEWS: Update. + * src/docgen/PSDrawDoc.py (draw_text,write_at): + Attempt latin1 encoding. + 2005-02-20 Alex Roitman * src/docgen/LPRDoc.py (draw_path,draw_bar): Set proper linewidth. * doc/gramps-manual/C/usage.xml: Update. diff --git a/gramps2/src/docgen/PSDrawDoc.py b/gramps2/src/docgen/PSDrawDoc.py index 30a9d0df2..099855988 100644 --- a/gramps2/src/docgen/PSDrawDoc.py +++ b/gramps2/src/docgen/PSDrawDoc.py @@ -178,9 +178,11 @@ class PSDrawDoc(BaseDoc.BaseDoc): x1 = x1 + self.lmargin y1 = y1 + self.tmargin + pt2cm(p.get_font().get_size()) + (text,fdef) = self.encode_text(p,text) + self.f.write('gsave\n') self.f.write('%f cm %f cm moveto\n' % self.translate(x1,y1)) - self.f.write(self.fontdef(p)) + self.f.write(fdef) self.f.write('(%s) show grestore\n' % text) def draw_wedge(self, style, centerx, centery, radius, start_angle, @@ -319,9 +321,11 @@ class PSDrawDoc(BaseDoc.BaseDoc): x = x + self.lmargin y = y + self.tmargin + (text,fdef) = self.encode_text(para_style,text) + self.f.write('gsave\n') self.f.write('%f cm %f cm moveto\n' % self.translate(x,y)) - self.f.write(self.fontdef(para_style)) + self.f.write(fdef) self.f.write('(%s) show grestore\n' % text) def draw_bar(self,style,x1,y1,x2,y2): @@ -352,7 +356,6 @@ class PSDrawDoc(BaseDoc.BaseDoc): box_style = self.draw_styles[style] para_name = box_style.get_paragraph_style() p = self.style_list[para_name] - (junk,fdef) = self.encode_text(p,text) bh = box_style.get_height() bw = box_style.get_width()