Updated font import to work with Weasyprint >= 53.0
This commit is contained in:
parent
f99cc381ee
commit
2bd09dfcec
2
build.py
2
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)
|
||||
|
Loading…
Reference in New Issue
Block a user