diff --git a/weasyprint-fix-pango-1-48-3.patch b/weasyprint-fix-pango-1-48-3.patch new file mode 100644 index 0000000..623c88e --- /dev/null +++ b/weasyprint-fix-pango-1-48-3.patch @@ -0,0 +1,24 @@ +diff --git a/weasyprint/fonts.py b/weasyprint/fonts.py +index d67d59c..2245fb2 100644 +--- a/weasyprint/fonts.py ++++ b/weasyprint/fonts.py +@@ -118,6 +118,7 @@ else: + void pango_fc_font_map_set_config ( + PangoFcFontMap *fcfontmap, FcConfig *fcconfig); + void pango_fc_font_map_shutdown (PangoFcFontMap *fcfontmap); ++ void pango_fc_font_map_config_changed (PangoFcFontMap *fcfontmap); + + + // PangoCairo +@@ -426,9 +427,8 @@ else: + if font_added: + # TODO: We should mask local fonts with the same name + # too as explained in Behdad's blog entry. +- # TODO: What about pango_fc_font_map_config_changed() +- # as suggested in Behdad's blog entry? +- # Though it seems to work without… ++ pangoft2.pango_fc_font_map_config_changed( ++ ffi.cast('PangoFcFontMap *', self.font_map)) + return filename + else: + LOGGER.debug('Failed to load font at "%s"', url) diff --git a/weasyprint.spec b/weasyprint.spec index 70ac415..4d1c78f 100644 --- a/weasyprint.spec +++ b/weasyprint.spec @@ -3,13 +3,14 @@ Name: weasyprint Version: 51 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Utility to render HTML and CSS to PDF License: BSD URL: https://weasyprint.org/ Source0: %pypi_source Patch0: %{name}-disable-flake8-isort-for-pytest.patch +Patch1: %{name}-fix-pango-1-48-3.patch BuildArch: noarch @@ -102,6 +103,9 @@ rm -rf %{buildroot}%{python3_sitelib}/%{modname}/tests %{python3_sitelib}/%{modname}/ %changelog +* Tue Mar 23 2021 Felix Schwarz - 51-6 +- add patch for pango 1.48.3 + * Wed Jul 29 2020 Fedora Release Engineering - 51-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild