Updated font import to work with Weasyprint >= 53.0
This commit is contained in:
parent
5de29fadbb
commit
46ccd64a62
2
build.py
2
build.py
@ -719,7 +719,7 @@ if pdf:
|
|||||||
|
|
||||||
# Generating the actual PDF with weasyprint (https://weasyprint.org/)
|
# Generating the actual PDF with weasyprint (https://weasyprint.org/)
|
||||||
from weasyprint import HTML
|
from weasyprint import HTML
|
||||||
from weasyprint.fonts import FontConfiguration
|
from weasyprint.text.fonts import FontConfiguration
|
||||||
|
|
||||||
html_font_config = FontConfiguration()
|
html_font_config = FontConfiguration()
|
||||||
doc = HTML(string = pdfpage, base_url = global_site_dir)
|
doc = HTML(string = pdfpage, base_url = global_site_dir)
|
||||||
|
Loading…
Reference in New Issue
Block a user