mirror of
https://github.com/Kozea/WeasyPrint.git
synced 2024-10-05 16:37:47 +03:00
Add font_config parameter when loading CSS in CSS
This commit is contained in:
parent
23b33f4311
commit
7f832f57e8
@ -648,8 +648,9 @@ def preprocess_stylesheet(device_media_type, base_url, stylesheet_rules,
|
||||
rule.line, rule.column)
|
||||
if url is not None:
|
||||
try:
|
||||
stylesheet = CSS(url=url, url_fetcher=url_fetcher,
|
||||
media_type=device_media_type)
|
||||
stylesheet = CSS(
|
||||
url=url, url_fetcher=url_fetcher,
|
||||
media_type=device_media_type, font_config=font_config)
|
||||
except URLFetchingError as exc:
|
||||
LOGGER.warning('Failed to load stylesheet at %s : %s',
|
||||
url, exc)
|
||||
|
Loading…
Reference in New Issue
Block a user