* src/docgen/PSDrawDoc.py (draw_text,write_at):

Attempt latin1 encoding.


svn: r4069
This commit is contained in:
Alex Roitman 2005-02-22 01:45:52 +00:00
parent e5925d8b77
commit 33a41ef87f
2 changed files with 9 additions and 3 deletions

View File

@ -5,6 +5,9 @@
2005-02-20 Alex Roitman <shura@alex.neuro.umn.edu>
* NEWS: Update.
* src/docgen/PSDrawDoc.py (draw_text,write_at):
Attempt latin1 encoding.
2005-02-20 Alex Roitman <shura@alex.neuro.umn.edu>
* src/docgen/LPRDoc.py (draw_path,draw_bar): Set proper linewidth.
* doc/gramps-manual/C/usage.xml: Update.

View File

@ -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()