Closed JaakkoRoponen closed 5 years ago
The documentation you quoted explicitly says:
The same fonts.FontConfiguration object must be used for different CSS objects applied to the same document.
but your patch created a new one for each stylesheet and your remote branch seems to be gone, so I cannot adapt/merge this.
Added via 6f5d9b7610b79d156050e309dbfd113e027a9604.
An additional argument called font_config must be provided to handle @font-config rules. The same fonts.FontConfiguration object must be used for different CSS objects applied to the same document.
https://weasyprint.readthedocs.io/en/latest/api.html#weasyprint.CSS