Fix report custom fonts, after recent changes in report engine.

bzr revid: p_christ@hol.gr-20090506213612-gf543bm7cbyrutb9
This commit is contained in:
P. Christeas
2009-05-07 00:36:12 +03:00
parent 3814e4dc73
commit 85ef2e1086
+6
View File
@@ -772,6 +772,12 @@ class _rml_template(object):
def parseNode(rml, localcontext = {},fout=None, images={}, path='.',title=None):
node = etree.XML(rml)
r = _rml_doc(node, localcontext, images, path, title=title)
#try to override some font mappings
try:
from customfonts import SetCustomFonts
SetCustomFonts(r)
except:
pass
fp = cStringIO.StringIO()
r.render(fp)
return fp.getvalue()