1
1
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:
Guillaume Ayoub 2016-10-28 17:44:31 +02:00
parent 23b33f4311
commit 7f832f57e8

View File

@ -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)