|
|
@ -365,7 +365,7 @@ class Bureau(object):
|
|
|
|
for font in glob.glob(fontsdir + "/*.ttf"):
|
|
|
|
for font in glob.glob(fontsdir + "/*.ttf"):
|
|
|
|
fontlist.append(("local", "file://" + font))
|
|
|
|
fontlist.append(("local", "file://" + font))
|
|
|
|
self.log.debug("adding font " + str(fdict))
|
|
|
|
self.log.debug("adding font " + str(fdict))
|
|
|
|
fdict["src"] = fontlist
|
|
|
|
fdict = { "src": fontlist }
|
|
|
|
fontconfig.add_font_face(fdict,
|
|
|
|
fontconfig.add_font_face(fdict,
|
|
|
|
weasyprint.default_url_fetcher)
|
|
|
|
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)
|
|
|
|