* src/docgen/Makefile.am, src/docgen/Makefile.in: Ship LPRDoc.py.

* src/plugins/GraphViz.py (dump_index): Remove utf8 to latin
conversion. Switch to FreeSans.
* src/docgen/PdfDoc.py (draw_text, rotate_text): Fix encoding.


svn: r3024
This commit is contained in:
Alex Roitman
2004-03-17 01:50:50 +00:00
parent 9fc3b43afb
commit ac6d3e74e0
4 changed files with 19 additions and 9 deletions

View File

@@ -13,7 +13,8 @@ pkgpython_PYTHON = \
PdfDoc.py\
PSDrawDoc.py\
RTFDoc.py\
SvgDrawDoc.py
SvgDrawDoc.py\
LPRDoc.py
pkgpyexecdir = @pkgpyexecdir@/docgen
pkgpythondir = @pkgpythondir@/docgen

View File

@@ -118,7 +118,8 @@ pkgpython_PYTHON = \
PdfDoc.py\
PSDrawDoc.py\
RTFDoc.py\
SvgDrawDoc.py
SvgDrawDoc.py\
LPRDoc.py
GRAMPS_PY_MODPATH = "../"

View File

@@ -454,13 +454,13 @@ class PdfDoc(BaseDoc.BaseDoc):
fc = make_color(font.get_color())
fnt = self.pdf_set_font(font)
if p.get_alignment() == BaseDoc.PARA_ALIGN_CENTER:
twidth = ((FontScale.string_width(font,str(text)))/2.0)*cm
twidth = ((FontScale.string_width(font,enc(text)))/2.0)*cm
xcm = (stype.get_width() - x) - twidth
else:
xcm = x * cm
s = reportlab.graphics.shapes.String(xcm,
y-size,
str(text),
enc(text),
strokeColor=sc,
fillColor=fc,
fontName=fnt,
@@ -493,7 +493,7 @@ class PdfDoc(BaseDoc.BaseDoc):
sc = make_color(font.get_color())
fc = make_color(font.get_color())
for line in text:
s = reportlab.graphics.shapes.String(0,yval,str(line),
s = reportlab.graphics.shapes.String(0,yval,enc(line),
fontName=fnt,
fontSize=size,
strokeColor=sc,