From 46ccd64a629b9c1c7976f28b958eb319fa7293b2 Mon Sep 17 00:00:00 2001 From: MrHeadwar Date: Thu, 25 Aug 2022 17:22:20 +0200 Subject: [PATCH] Updated font import to work with Weasyprint >= 53.0 --- build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.py b/build.py index d7753fe6..16a01f91 100755 --- a/build.py +++ b/build.py @@ -719,7 +719,7 @@ if pdf: # Generating the actual PDF with weasyprint (https://weasyprint.org/) from weasyprint import HTML - from weasyprint.fonts import FontConfiguration + from weasyprint.text.fonts import FontConfiguration html_font_config = FontConfiguration() doc = HTML(string = pdfpage, base_url = global_site_dir)