|
|
@ -359,6 +359,10 @@ class Bureau(object):
|
|
|
|
for font in glob.glob(fontsdir + ".otf"):
|
|
|
|
for font in glob.glob(fontsdir + ".otf"):
|
|
|
|
fontconfig.add_font_face("file://" + font,
|
|
|
|
fontconfig.add_font_face("file://" + font,
|
|
|
|
weasyprint.default_url_fetcher)
|
|
|
|
weasyprint.default_url_fetcher)
|
|
|
|
|
|
|
|
for font in glob.glob(fontsdir + ".ttf"):
|
|
|
|
|
|
|
|
self.log.debug("adding font " + "file://" + font)
|
|
|
|
|
|
|
|
fontconfig.add_font_face("file://" + font,
|
|
|
|
|
|
|
|
weasyprint.default_url_fetcher)
|
|
|
|
weasyprint.HTML(string=templ.render_unicode(**kwargs)).write_pdf(pdfpath, font_config=fontconfig)
|
|
|
|
weasyprint.HTML(string=templ.render_unicode(**kwargs)).write_pdf(pdfpath, font_config=fontconfig)
|
|
|
|
subprocess.call("lpr -o sides=two-sided-long-edge -o InputSlot=Upper " + pdfpath, shell=True)
|
|
|
|
subprocess.call("lpr -o sides=two-sided-long-edge -o InputSlot=Upper " + pdfpath, shell=True)
|
|
|
|
|
|
|
|
|
|
|
|